mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 01:44:24 +01:00
Use GetTimerMS() instead of time() with srand.
This is more portable and avoids generating the same random numbers for a whole second (and on MinGW for some unexplainable reason for almost 10 seconds). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27353 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fb2b4dea1c
commit
f6b9076a6d
@ -2556,9 +2556,8 @@ int i;
|
||||
|
||||
int gui_no_filename=0;
|
||||
|
||||
srand((int) time(NULL));
|
||||
|
||||
InitTimer();
|
||||
srand(GetTimerMS());
|
||||
|
||||
mp_msg_init();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user