diff options
author | lsalzman <[email protected]> | 2013-08-09 09:41:57 +0300 |
---|---|---|
committer | lsalzman <[email protected]> | 2013-08-09 09:41:57 +0300 |
commit | 1658cf3a9527c47a76c79efbe477bbbe3350d847 (patch) | |
tree | 4168ad2c864857112114b8b317168be3097d0c53 /host.c | |
parent | 4697a58d53ca1027a78f7f36a2544ad653e2aa09 (diff) | |
download | enet-1658cf3a9527c47a76c79efbe477bbbe3350d847.tar.gz enet-1658cf3a9527c47a76c79efbe477bbbe3350d847.zip |
stub out enet_host_random_seed()
Diffstat (limited to 'host.c')
-rw-r--r-- | host.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -4,7 +4,6 @@ */ #define ENET_BUILDING_LIB 1 #include <string.h> -#include <time.h> #include "enet/enet.h" /** @defgroup host ENet host functions @@ -76,11 +75,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL channelLimit = ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT; host -> randomSeed = (enet_uint32) (size_t) host; -#ifdef WIN32 - host -> randomSeed += (enet_uint32) timeGetTime(); -#else - host -> randomSeed += (enet_uint32) time(NULL); -#endif + host -> randomSeed += enet_host_random_seed (); host -> randomSeed = (host -> randomSeed << 16) | (host -> randomSeed >> 16); host -> channelLimit = channelLimit; host -> incomingBandwidth = incomingBandwidth; |