diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 07:02:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 07:02:36 +0200 |
commit | af1285bdf7a0365bae5bf23f4022abbc0d2cb526 (patch) | |
tree | 6609a099dd3364567bb03ff1f837dd2e9e0ec2de /bbot/agent | |
parent | ca35746ba41437b1ced31d689ec51203c960bfb4 (diff) |
Make compilable on Windows
Diffstat (limited to 'bbot/agent')
-rw-r--r-- | bbot/agent | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,6 +26,15 @@ namespace bbot extern uid_t uid; // Our effective user id. extern string uname; // Our effective user name. + // Random number generator (currently not MT-safe and limited to RAND_MAX). + // + size_t + genrand (); + + template <typename T> + inline T + genrand () {return static_cast<T> (genrand ());} + // Return the IPv4 address of an interface. // string |