|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76006 - branches/release/boost/uuid
From: atompkins_at_[hidden]
Date: 2011-12-16 20:32:35
Author: atompkins
Date: 2011-12-16 20:32:33 EST (Fri, 16 Dec 2011)
New Revision: 76006
URL: http://svn.boost.org/trac/boost/changeset/76006
Log:
fixed ticket #6258
Text files modified:
branches/release/boost/uuid/seed_rng.hpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: branches/release/boost/uuid/seed_rng.hpp
==============================================================================
--- branches/release/boost/uuid/seed_rng.hpp (original)
+++ branches/release/boost/uuid/seed_rng.hpp 2011-12-16 20:32:33 EST (Fri, 16 Dec 2011)
@@ -139,7 +139,11 @@
}
{
- unsigned int rn[] = { std::rand(), std::rand(), std::rand() };
+ unsigned int rn[] =
+ { static_cast<unsigned int>(std::rand())
+ , static_cast<unsigned int>(std::rand())
+ , static_cast<unsigned int>(std::rand())
+ };
sha.process_bytes( (unsigned char const*)rn, sizeof( rn ) );
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk