Windows build fixes

This was SVN commit r7566.
This commit is contained in:
Ykkrosh
2010-05-22 14:27:53 +00:00
parent 94e5d88169
commit f902803af2
2 changed files with 3 additions and 5 deletions
@@ -117,11 +117,11 @@ public:
boost::rand48 rng;
script.ReplaceNondeterministicFunctions(rng);
rng.seed(0);
rng.seed((u64)0);
TS_ASSERT(script.Eval("Math.random()", d1));
TS_ASSERT(script.Eval("Math.random()", d2));
TS_ASSERT_DIFFERS(d1, d2);
rng.seed(0);
rng.seed((u64)0);
TS_ASSERT(script.Eval("Math.random()", d2));
TS_ASSERT_EQUALS(d1, d2);
}