diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-31 10:20:46 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2015-12-31 10:22:29 -0500 |
commit | 42161c26220fcd650fd9cd87ea7d94ca8b2b7913 (patch) | |
tree | 890d7b58d032e4589db02946c63287c3090d714a /jstests/core/geo_update_btree2.js | |
parent | 0543286571ae6df875b2cb23eb549bb14a8ca7c2 (diff) | |
download | mongo-42161c26220fcd650fd9cd87ea7d94ca8b2b7913.tar.gz |
SERVER-20519 Set random seed, assert if seed not set and random function is invoked.
Diffstat (limited to 'jstests/core/geo_update_btree2.js')
-rw-r--r-- | jstests/core/geo_update_btree2.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/core/geo_update_btree2.js b/jstests/core/geo_update_btree2.js index d99970c73e0..e0ddfd2adaa 100644 --- a/jstests/core/geo_update_btree2.js +++ b/jstests/core/geo_update_btree2.js @@ -25,6 +25,7 @@ coll.ensureIndex( { loc : '2d' } ) status( "Inserting points..." ) var numPoints = 10 +Random.setRandomSeed(); for ( i = 0; i < numPoints; i++ ) { coll.insert( { _id : i, loc : [ Random.rand() * 180, Random.rand() * 180 ], i : i % 2 } ); } |