cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).

Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun
2009-04-10 17:23:38 +00:00
parent ee30cdabad
commit 64bde1974b
9 changed files with 43 additions and 43 deletions
+4 -4
View File
@@ -182,12 +182,12 @@ int main(void){
int i;
void *k;
AVTreeNode *root= NULL, *node=NULL;
AVLFG prn;
AVLFG prng;
av_lfg_init(&prn, 1);
av_lfg_init(&prng, 1);
for(i=0; i<10000; i++){
int j = av_lfg_get(&prn) % 86294;
int j = av_lfg_get(&prng) % 86294;
if(check(root) > 999){
av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i);
print(root, 0);
@@ -198,7 +198,7 @@ int main(void){
node= av_mallocz(av_tree_node_size);
av_tree_insert(&root, (void*)(j+1), cmp, &node);
j = av_lfg_get(&prn) % 86294;
j = av_lfg_get(&prng) % 86294;
{
AVTreeNode *node2=NULL;
av_log(NULL, AV_LOG_ERROR, "removing %4d\n", j);