Added RandomGenerator:getState and RandomGenerator:setState (resolves issue #831.)

getState returns an implementation-dependent string representing the current state of the RandomGenerator's PRNG. setState sets the PRNG's state to an implementation-dependent string.
This commit is contained in:
Alex Szpakowski
2014-02-08 20:28:41 -04:00
parent de1f105e40
commit d07e31370d
7 changed files with 201 additions and 135 deletions
+4 -2
View File
@@ -30,10 +30,12 @@ namespace love
namespace math
{
int w_setRandomSeed(lua_State *L);
int w_getRandomSeed(lua_State *L);
int w_random(lua_State *L);
int w_randomNormal(lua_State *L);
int w_setRandomSeed(lua_State *L);
int w_getRandomSeed(lua_State *L);
int w_setRandomState(lua_State *L);
int w_getRandomState(lua_State *L);
int w_newRandomGenerator(lua_State *L);
int w_newBezierCurve(lua_State *L);
int w_triangulate(lua_State *L);