Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Windows
Description
On windows the random seed is not used
BSONObj JSRand( const BSONObj &a, void* data ) {
|
uassert( 12519, "rand accepts no arguments", a.nFields() == 0 );
|
unsigned r;
|
#if !defined(_WIN32)
|
r = rand_r( &_randomSeed );
|
#else
|
r = rand(); // seed not used in this case
|
#endif
|
return BSON( "" << double( r ) / ( double( RAND_MAX ) + 1 ) );
|
}
|
Attachments
Issue Links
- is depended on by
-
SERVER-5305 "point not in interval" error in geo_polygon2.js
-
- Closed
-