Call rand() a few times after calling srand()

This commit is contained in:
Louis-Antoine 2020-04-27 14:22:45 +02:00
parent 58c0383e88
commit c7cd53d5b2

View file

@ -1182,6 +1182,9 @@ void D_SRB2Main(void)
// rand() needs seeded regardless of password
srand((unsigned int)time(NULL));
rand();
rand();
rand();
if (M_CheckParm("-password") && M_IsNextParm())
D_SetPassword(M_GetNextParm());