[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Effects of Lua state random seed? (luai_makeseed in lstate.c)
- From: bil til <biltil52@...>
- Date: Thu, 24 Nov 2022 12:37:21 +0100
sorry about another Lua beginner "internals question".
I am just looking at my time functions, and I recognized that timer(0)
is invoked at some times in Lua to create a randomization seed.
I changed the code of my timer() function now, so that I am sure a
real random seed is given there (my microcontroller has a Random
Number Generator on board for this purpose), but I do not really see
(In a first guess I would expect, that then the memory address of my
Lua Base state possibly would always be at some other address? ... or
what exactly are the implications of this "random seed"?).