PcgRandom crashes the application.

Post Reply
User avatar
Sane
Member
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

PcgRandom crashes the application.

by Sane » Post

Hi there,

when using PcgRandom's next function the application crashes.

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:
+ Spoiler
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
Trying to stay me.

est31
Developer
Posts: 173
Joined: Mon Dec 29, 2014 01:49

Re: PcgRandom crashes the application.

by est31 » Post


Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests