0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

elim warning

This commit is contained in:
dwight 2010-12-13 20:22:54 -05:00
parent 7ee635b2a2
commit 166adfc64d

View File

@ -63,7 +63,7 @@ namespace mongo {
_devrandom->read((char*)&n, sizeof(n));
massert( 10355 , "devrandom failed", !_devrandom->fail());
#elif defined(_WIN32)
unsigned a, b;
unsigned a=0, b=0;
assert( rand_s(&a) == 0 );
assert( rand_s(&b) == 0 );
n = (((unsigned long long)a)<<32) | b;