diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-12 20:18:58 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-12 21:09:59 -0800 |
commit | b17b9021ecf9b16c265d0a6b60faa761b34eae35 (patch) | |
tree | e8192de5b2458864f0f5ce5edd0e1ccf5605c644 /src/common/core.cpp | |
parent | 80e36aa669274637bcd5956fbf4020dba1d4739c (diff) | |
download | tmwa-b17b9021ecf9b16c265d0a6b60faa761b34eae35.tar.gz tmwa-b17b9021ecf9b16c265d0a6b60faa761b34eae35.tar.bz2 tmwa-b17b9021ecf9b16c265d0a6b60faa761b34eae35.tar.xz tmwa-b17b9021ecf9b16c265d0a6b60faa761b34eae35.zip |
Replace mt_rand with <random>
Also add some utility methods and classes.
Diffstat (limited to 'src/common/core.cpp')
-rw-r--r-- | src/common/core.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/core.cpp b/src/common/core.cpp index ae0e3eb..994de93 100644 --- a/src/common/core.cpp +++ b/src/common/core.cpp @@ -8,7 +8,7 @@ #include <cstdlib> #include <ctime> -#include "mt_rand.hpp" +#include "random.hpp" #include "socket.hpp" #include "timer.hpp" @@ -68,9 +68,6 @@ bool runflag = true; */ int main(int argc, char **argv) { - /// Note that getpid() and getppid() may be very close - mt_seed(time(NULL) ^ (getpid() << 16) ^ (getppid() << 8)); - do_socket(); do_init(argc, argv); |