Page 1 of 1

PcgRandom crashes the application.

PostPosted: Mon Aug 10, 2015 12:54
by Sane
Hi there,

when using PcgRandom's next function the application crashes.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
print ("----- Test starts.")
local pcg = PcgRandom(os.time())
print ("----- generated pcg.")
local value = pcg:next();
print ("----- Help me I am never printed!")
print ("----- value="..tostring(value)..".")


result:
+ debug.txt


using minetest-0.4.12-7a6e4dc (sfan5's build)
on windows.

Steps to reproduce:
o Set ... games\minimal\mods\test\init.lua to the code mentioned above.
o Run any game

Re: PcgRandom crashes the application.

PostPosted: Mon Aug 10, 2015 13:13
by est31