diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-11-13 02:59:15 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-11-13 02:59:15 -0500 |
commit | 1a412fb2d56f71ee361a0833eeec59fc3d2d51a7 (patch) | |
tree | a53970db21331407464d84f554d3cefa130b508f /src/mongo/platform | |
parent | 7956fd07ade66f4ca35cc65472ef2a026b67bdc8 (diff) | |
download | mongo-1a412fb2d56f71ee361a0833eeec59fc3d2d51a7.tar.gz |
PseudoRandom isn't seedable on windows
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/random_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/platform/random_test.cpp b/src/mongo/platform/random_test.cpp index 67084ab5c37..0752604c5ca 100644 --- a/src/mongo/platform/random_test.cpp +++ b/src/mongo/platform/random_test.cpp @@ -22,12 +22,14 @@ namespace mongo { TEST( RandomTest, Seed1 ) { +#ifndef _WIN32 PseudoRandom a( 12 ); PseudoRandom b( 12 ); for ( int i = 0; i < 100; i++ ) { ASSERT_EQUALS( a.nextInt32(), b.nextInt32() ); } +#endif } TEST( RandomTest, Secure1 ) { |