# HG changeset patch # User michael # Date 1278611379 0 # Node ID e6d6b3506d76fd71b55bc753bf98088852155691 # Parent d7cafb07ae9f7ff961324b117daa8da4933bd567 Change i to unsigned in get_generic_seed() This is clearer than comparing against an unsigned number to force an unsigned comparission that we need. diff -r d7cafb07ae9f -r e6d6b3506d76 random_seed.c --- a/random_seed.c Thu Jul 08 13:35:46 2010 +0000 +++ b/random_seed.c Thu Jul 08 17:49:39 2010 +0000 @@ -43,13 +43,13 @@ int last_t=0; int bits=0; uint64_t random=0; - int i; + unsigned i; int s=0; for(i=0;bits<64;i++){ int t= clock()>>s; if(last_t && t != last_t){ - if(i<10000U && s<24){ + if(i<10000 && s<24){ s++; i=t=0; }else{