diff tree.c @ 726:5d344280a1f8 libavutil

cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
author diego
date Fri, 10 Apr 2009 17:23:38 +0000
parents 01f68e5fb9af
children f0e08dd7d583
line wrap: on
line diff
--- a/tree.c	Fri Apr 10 11:32:09 2009 +0000
+++ b/tree.c	Fri Apr 10 17:23:38 2009 +0000
@@ -182,12 +182,12 @@
     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 @@
             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);