mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-22 11:51:41 +00:00
Call rand() a few times after calling srand()
This commit is contained in:
parent
58c0383e88
commit
c7cd53d5b2
1 changed files with 3 additions and 0 deletions
|
@ -1182,6 +1182,9 @@ void D_SRB2Main(void)
|
||||||
|
|
||||||
// rand() needs seeded regardless of password
|
// rand() needs seeded regardless of password
|
||||||
srand((unsigned int)time(NULL));
|
srand((unsigned int)time(NULL));
|
||||||
|
rand();
|
||||||
|
rand();
|
||||||
|
rand();
|
||||||
|
|
||||||
if (M_CheckParm("-password") && M_IsNextParm())
|
if (M_CheckParm("-password") && M_IsNextParm())
|
||||||
D_SetPassword(M_GetNextParm());
|
D_SetPassword(M_GetNextParm());
|
||||||
|
|
Loading…
Reference in a new issue