diff options
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 |