- Introduce seeding of the random number generator at startup
- Replaced all engine-side occurances of rand() with random()
This commit is contained in:
parent
7aed7e8861
commit
b40f1507ea
5 changed files with 28 additions and 17 deletions
|
@ -475,8 +475,7 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
|
|||
Cvar_Set("cl_paused", "0");
|
||||
|
||||
// get a new checksum feed and restart the file system
|
||||
srand(Com_Milliseconds());
|
||||
sv.checksumFeed = ( ((int) rand() << 16) ^ rand() ) ^ Com_Milliseconds();
|
||||
sv.checksumFeed = ( ((int) random() << 16) ^ random() ) ^ Com_Milliseconds();
|
||||
FS_Restart( sv.checksumFeed );
|
||||
|
||||
CM_LoadMap( va("maps/%s.bsp", server), qfalse, &checksum );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue