Make Math.random() more deterministic

This was SVN commit r7563.
This commit is contained in:
Ykkrosh
2010-05-22 00:38:33 +00:00
parent 1fc75e7605
commit 386f322b1c
6 changed files with 95 additions and 0 deletions
+4
View File
@@ -29,6 +29,8 @@
#include "ScriptTypes.h"
#include "ScriptVal.h"
namespace boost { class rand48; }
// Set the maximum number of function arguments that can be handled
// (This should be as small as possible (for compiler efficiency),
// but as large as necessary for all wrapped functions)
@@ -62,6 +64,8 @@ public:
JSContext* GetContext() const;
void ReplaceNondeterministicFunctions(boost::rand48& rng);
/**
* Call a constructor function, roughly equivalent to JS "new ctor".
*