lua: print a random IMEI from the seed provided

I don't know how much stronger we can see the LUA RNG. It seems to
accept an "int" which I assume is 32 bit. It will complain if the seed
is too big.
This commit is contained in:
Tobias Mueller 2023-10-18 20:59:33 +02:00
parent a3fff24042
commit 4b427bbcfc

View File

@ -56,4 +56,6 @@ function make_random_imei ()
return imei return imei
end end
print (make_imei ("354809108035177")) math.randomseed(tonumber(arg[1]))
print (make_random_imei ())