Mercurial > libavutil.hg
changeset 985:e6d6b3506d76 libavutil
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.
author | michael |
---|---|
date | Thu, 08 Jul 2010 17:49:39 +0000 |
parents | d7cafb07ae9f |
children | 093c69c7b752 |
files | random_seed.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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{