Changeset 293796


Ignore:
Timestamp:
07/23/09 09:03:09 (9 years ago)
Author:
Erik Ekman <yarrick@…>
Branches:
05dc792d86ecada826f67b57de5a49bbe38ec874
Children:
3a2f66
Parents:
938c24
git-author:
Erik Ekman <yarrick@…> (07/23/09 09:03:09)
git-committer:
Erik Ekman <erik@…> (02/04/12 20:34:02)
Message:

Fix #65, randomize rand_seed on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/iodine.c

    r938c24 r293796  
    2626#include <fcntl.h> 
    2727#include <zlib.h> 
     28#include <time.h> 
    2829 
    2930#ifdef WINDOWS32 
     
    11841185        WSAStartup(req_version, &wsa_data); 
    11851186#endif 
     1187 
     1188        srand((unsigned) time(NULL)); 
     1189        rand_seed = rand(); 
    11861190         
    11871191#if !defined(BSD) && !defined(__GLIBC__) 
Note: See TracChangeset for help on using the changeset viewer.