1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +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:
reimar 2008-07-26 21:58:00 +00:00
parent fb2b4dea1c
commit f6b9076a6d

View File

@ -2556,9 +2556,8 @@ int i;
int gui_no_filename=0;
srand((int) time(NULL));
InitTimer();
srand(GetTimerMS());
mp_msg_init();