diff --git a/eo/src/utils/eoRNG.cpp b/eo/src/utils/eoRNG.cpp index fadc1aa2..36f6a489 100644 --- a/eo/src/utils/eoRNG.cpp +++ b/eo/src/utils/eoRNG.cpp @@ -3,5 +3,8 @@ /// The global object, should probably be initialized with an xor /// between time and process_id. +namespace eo +{ eoRng rng((uint32) time(0)); +} diff --git a/eo/src/utils/eoRNG.h b/eo/src/utils/eoRNG.h index 849de003..027da5d5 100644 --- a/eo/src/utils/eoRNG.h +++ b/eo/src/utils/eoRNG.h @@ -279,7 +279,13 @@ private : /** The one and only global eoRng object */ +namespace eo +{ extern eoRng rng; +} + +using eo::rng; + // Implementation of some eoRng members.... Don't mind the mess, it does work.