This repository has been archived on 2026-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
eodev/eo/src/utils/eoRNG.cpp
evomarc 61a85582d5 Added the namespace eo for the global variable rng in eoRNG.cpp
Also added "using eo::rng" in eoRNG.h so nothing has to be modified.
We should gradually move to write eo::rng everywhere, and remove that using
directive to be almost full-proofed against possible name collision.
2001-01-08 10:07:27 +00:00

10 lines
183 B
C++

#include <ctime>
#include "eoRNG.h"
/// The global object, should probably be initialized with an xor
/// between time and process_id.
namespace eo
{
eoRng rng((uint32) time(0));
}