diff options
author | william <william@25tandclement.com> | 2014-03-27 22:31:47 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-03-27 22:31:47 -0700 |
commit | ca15b450d7dec0d24f56a5d8247cd7bc67e1ac4b (patch) | |
tree | a9fe46908adefe97b5bba1b7bc0a30cb49ec0dcf /doc | |
parent | f61a39615ebffb61e8cca28d5dfafb6363da54ec (diff) | |
download | luaossl-ca15b450d7dec0d24f56a5d8247cd7bc67e1ac4b.tar.gz luaossl-ca15b450d7dec0d24f56a5d8247cd7bc67e1ac4b.tar.bz2 luaossl-ca15b450d7dec0d24f56a5d8247cd7bc67e1ac4b.zip |
update rand.uniform documentation for new Lua 5.3 support
Diffstat (limited to 'doc')
-rw-r--r-- | doc/luaossl.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/luaossl.tex b/doc/luaossl.tex index 5bdc67d..94ee18e 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex @@ -754,7 +754,7 @@ In the default CSPRNG engine this routine will also attempt to seed the system i Returns a cryptographically strong uniform random integer in the interval $[0, n-1]$. If $n$ is omitted, the interval is $[0, 2^{64}-1]$. -The routine operates internally on 64-bit unsigned integers.\footnote{Actually, \texttt{unsigned long long}.} Because neither Lua 5.1 nor 5.2 support 64-bit integers, it's probably best to generate numbers that fit the integral range of your Lua implementation. Lua 5.3 is expected to add a new arithmetic type for 64-bit signed integers in two's-complement representation. This new arithmetic type will be used for return values when available. +The routine operates internally on 64-bit unsigned integers.\footnote{Actually, \texttt{unsigned long long}.} Because neither Lua 5.1 nor 5.2 support 64-bit integers, it's probably best to generate numbers that fit the integral range of your Lua implementation. Lua 5.3 supports a new arithmetic type for 64-bit signed integers in two's-complement representation. This new arithmetic type will be used for argument and return values when available. \end{Module} |