mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-07-16 03:39:42 -04:00
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:
parent
a3fff24042
commit
4b427bbcfc
1 changed files with 3 additions and 1 deletions
|
@ -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 ())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue