mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-27 16:05:04 +00:00
Make Math.random() more deterministic
This was SVN commit r7563.
This commit is contained in:
@@ -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".
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user