diff options
Diffstat (limited to 'cpp/src/IceUtil/Random.cpp')
-rw-r--r-- | cpp/src/IceUtil/Random.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/IceUtil/Random.cpp b/cpp/src/IceUtil/Random.cpp index 4af2e165069..f4f4d30aa95 100644 --- a/cpp/src/IceUtil/Random.cpp +++ b/cpp/src/IceUtil/Random.cpp @@ -21,6 +21,7 @@ using namespace std; + IceUtil::RandomGeneratorException::RandomGeneratorException(const char* file, int line) : Exception(file, line) { @@ -91,8 +92,11 @@ IceUtil::RandomGeneratorException::ice_throw() const // Used by generateUUID() to get a random sequence and the pid of // current process. // +namespace IceUtil +{ + void -IceUtil::generateRandomAndGetPid(char* buffer, int size, char* pid) +generateRandomAndGetPid(char* buffer, int size, char* pid) { assert(pid); generateRandom(buffer, size); @@ -100,6 +104,8 @@ IceUtil::generateRandomAndGetPid(char* buffer, int size, char* pid) pid[1] = myPid[1]; } +} + void IceUtil::generateRandom(char* buffer, int size) { |