diff options
Diffstat (limited to 'net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc')
-rw-r--r-- | net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc b/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc new file mode 100644 index 0000000..1a3b57b --- /dev/null +++ b/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc @@ -0,0 +1,11 @@ ++++ libbitdht/src/util/bdrandom.cc 2012-01-15 03:45:36.000000000 +0100 +--- libbitdht/src/util/bdrandom.cc.orig 2012-01-15 03:45:07.000000000 +0100 +@@ -13,7 +13,7 @@ + #ifdef __APPLE__ + static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_mach_thread_np(pthread_self())*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ; + #else ++// static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ; +- static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ; + #endif + #endif + bool bdRandom::seed(uint32_t s) |