lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




在 2020年3月13日,02:03,Roberto Ierusalimschy <roberto@inf.puc-rio.br> 写道:


If you're already patching the VM, it shouldn't be hard to just patch the
seed assignment yourself.

Just define the macro luai_makeseed (see lstate.c).

-- Roberto


luai_makeseed is not enough, because the seed is still random.

I think let the macro luai_makeseed replacing the whole makeseed function would be better.