summaryrefslogtreecommitdiff
path: root/boost/uuid/random_generator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/uuid/random_generator.hpp')
-rw-r--r--boost/uuid/random_generator.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/boost/uuid/random_generator.hpp b/boost/uuid/random_generator.hpp
index 0f4a0ab668..7ca025b74f 100644
--- a/boost/uuid/random_generator.hpp
+++ b/boost/uuid/random_generator.hpp
@@ -34,7 +34,7 @@ private:
public:
typedef uuid result_type;
-
+
// default constructor creates the random number generator
basic_random_generator()
: pURNG(new UniformRandomNumberGenerator)
@@ -49,7 +49,7 @@ public:
// seed the random number generator
detail::seed(*pURNG);
}
-
+
// keep a reference to a random number generator
// don't seed a given random number generator
explicit basic_random_generator(UniformRandomNumberGenerator& gen)
@@ -62,7 +62,7 @@ public:
)
)
{}
-
+
// keep a pointer to a random number generator
// don't seed a given random number generator
explicit basic_random_generator(UniformRandomNumberGenerator* pGen)
@@ -77,11 +77,11 @@ public:
{
BOOST_ASSERT(pURNG);
}
-
+
uuid operator()()
{
uuid u;
-
+
int i=0;
unsigned long random_value = generator();
for (uuid::iterator it=u.begin(); it!=u.end(); ++it, ++i) {
@@ -90,7 +90,7 @@ public:
i = 0;
}
- // static_cast gets rid of warnings of converting unsigned long to boost::uint8_t
+ // static_cast gets rid of warnings of converting unsigned long to boost::uint8_t
*it = static_cast<uuid::value_type>((random_value >> (i*8)) & 0xFF);
}