Commit b65c1ccf authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Change i to unsigned in get_generic_seed().

This is clearer than comparing against an unsigned number to force an unsigned
comparison that we need.

Originally committed as revision 24114 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9be24c60
...@@ -43,13 +43,13 @@ static uint32_t get_generic_seed(void) ...@@ -43,13 +43,13 @@ static uint32_t get_generic_seed(void)
int last_t=0; int last_t=0;
int bits=0; int bits=0;
uint64_t random=0; uint64_t random=0;
int i; unsigned i;
int s=0; int s=0;
for(i=0;bits<64;i++){ for(i=0;bits<64;i++){
int t= clock()>>s; int t= clock()>>s;
if(last_t && t != last_t){ if(last_t && t != last_t){
if(i<10000U && s<24){ if(i<10000 && s<24){
s++; s++;
i=t=0; i=t=0;
}else{ }else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment