mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Add note about the unsuitabilty of math.random() for crypto.
This commit is contained in:
parent
c6c6e3b416
commit
a75d13c63a
@ -212,6 +212,10 @@ for every call. The result is uniformly distributed between 0.0 and 1.0.
|
|||||||
It's correctly scaled up and rounded for <tt>math.random(n [,m])</tt> to
|
It's correctly scaled up and rounded for <tt>math.random(n [,m])</tt> to
|
||||||
preserve uniformity.
|
preserve uniformity.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
Important: Neither this nor any other PRNG based on the simplistic
|
||||||
|
<tt>math.random()</tt> API is suitable for cryptographic use.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h3 id="io"><tt>io.*</tt> functions handle 64 bit file offsets</h3>
|
<h3 id="io"><tt>io.*</tt> functions handle 64 bit file offsets</h3>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user