mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
elim warning
This commit is contained in:
parent
7ee635b2a2
commit
166adfc64d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user