From 8247227d7404f24c122b88d204dda8d370b4b485 Mon Sep 17 00:00:00 2001 From: dwight Date: Wed, 22 Dec 2010 09:54:17 -0500 Subject: [PATCH] fix test --- dbtests/perftests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbtests/perftests.cpp b/dbtests/perftests.cpp index f355bbf1f87..6560d4d552a 100644 --- a/dbtests/perftests.cpp +++ b/dbtests/perftests.cpp @@ -210,6 +210,9 @@ namespace PerfTests { */ class Update1 : public B { public: + static int rand() { + return std::rand() & 0x7fff; + } string name() { return "random upserts"; } void prep() { client().insert( ns(), BSONObj() );