Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harley <tim.harley.uk@gmail.com>2014-02-25 19:48:55 +0400
committerTim Harley <tim.harley.uk@gmail.com>2014-02-28 19:23:42 +0400
commit4b985215c6a40f13699094d96851209d24667fd4 (patch)
tree8aaec1a17c775d1f39b2ef143366feec3b40962c /Generator.c
parentda77f9537e06a49cfc5c2158077c061061abba3c (diff)
qth runs, can call random methods if you explicitly pass a generator.
Diffstat (limited to 'Generator.c')
-rw-r--r--Generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Generator.c b/Generator.c
index e861d9c..e18e510 100644
--- a/Generator.c
+++ b/Generator.c
@@ -8,7 +8,7 @@ static const struct luaL_Reg torch_Generator_table_ [] = {
static int torch_Generator_new(lua_State *L)
{
- THGenerator *gen = THRandomGenerator_new();
+ THGenerator *gen = THGenerator_new();
luaT_pushudata(L, gen, torch_Generator);
return 1;
}