diff options
author | Tim Harley <tim.harley.uk@gmail.com> | 2014-02-26 16:11:00 +0400 |
---|---|---|
committer | Tim Harley <tim.harley.uk@gmail.com> | 2014-02-28 19:23:42 +0400 |
commit | 6508505cac37fac259e21b591a8a07aa15da3e2c (patch) | |
tree | 6932b074eaf907be1a009748e3a9303482e0655f /random.lua | |
parent | 4b985215c6a40f13699094d96851209d24667fd4 (diff) |
Create a generator in the lua torch scope.
Diffstat (limited to 'random.lua')
-rw-r--r-- | random.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -41,6 +41,8 @@ interface:print( void torch_random_init(lua_State *L) { torch_Generator_init(L); + torch_Generator_new(L); + lua_setfield(L, -2, "_gen"); luaL_register(L, NULL, random__); } ]]) |