summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Random.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-03-23 13:01:10 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-03-23 13:01:10 +0000
commitc230f9229580131d54675d91ddaa8c34591298b3 (patch)
treefc1246455cef949de09849fa51056aa961661a4d /cpp/src/IceUtil/Random.cpp
parentAdded Random.cpp (diff)
downloadice-c230f9229580131d54675d91ddaa8c34591298b3.tar.bz2
ice-c230f9229580131d54675d91ddaa8c34591298b3.tar.xz
ice-c230f9229580131d54675d91ddaa8c34591298b3.zip
Fix
Diffstat (limited to 'cpp/src/IceUtil/Random.cpp')
-rw-r--r--cpp/src/IceUtil/Random.cpp8
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)
{