mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Use the C++11 random number generator instead of rand().
This is safer, faster, and doesn't require seeding.
This commit is contained in:
+1
-1
@@ -679,7 +679,7 @@ public:
|
||||
: Manager(creator)
|
||||
, Timer(300, true)
|
||||
, serial(Anope::CurTime)
|
||||
, cur_id(rand())
|
||||
, cur_id(Anope::RandomNumber())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user