Commit e9657db3 authored by Eben Blaisdell's avatar Eben Blaisdell

dev change

parent 945f5e0e
......@@ -461,6 +461,7 @@ function luaCallback(error, ret_value){
function initInterp(block) {
block.interp.doFile(path.join(__dirname,'initInterp.lua'), luaCallback);
block.interp.doString('math.randomseed('+math.random()+')')
block.interp.doString(block.code, luaCallback); //inits user code
}
......
......@@ -29,6 +29,3 @@ end
function isOpen(dir)
return __openDirs[dir]
end
print("os.time==" .. os.time())
math.randomseed( os.time() )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment