[FFmpeg-cvslog] r24114 - trunk/libavutil/random_seed.c
michael
subversion
Thu Jul 8 19:49:40 CEST 2010
Author: michael
Date: Thu Jul 8 19:49:39 2010
New Revision: 24114
Log:
Change i to unsigned in get_generic_seed()
Modified:
trunk/libavutil/random_seed.c
Modified: trunk/libavutil/random_seed.c
==============================================================================
--- trunk/libavutil/random_seed.c Thu Jul 8 17:30:30 2010 (r24113)
+++ trunk/libavutil/random_seed.c Thu Jul 8 19:49:39 2010 (r24114)
@@ -43,13 +43,13 @@ static uint32_t get_generic_seed(void)
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{
More information about the ffmpeg-cvslog
mailing list