Changeset 44ed20


Ignore:
Timestamp:
07/23/09 09:03:09 (9 years ago)
Author:
Erik Ekman <yarrick@…>
Branches:
iodine-0.6
Children:
6033e2
Parents:
50272d
git-author:
Erik Ekman <yarrick@…> (07/23/09 09:03:09)
git-committer:
Erik Ekman <yarrick@…> (07/23/09 09:03:09)
Message:

Fix #65, randomize rand_seed on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/iodine.c

    r50272d r44ed20  
    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.