mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Windows build fixes
This was SVN commit r7566.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user