commit 18b80940569e1ea9e2d2ba7dbe344fb95c592229
parent c0b1e5d20a9c4f989ab55942ac3243dfac8e8179
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sun, 12 Jul 2020 13:21:00 +0300
README tweaks
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -34,10 +34,11 @@ three cases.
`arc4.random()` returns a random floating point number in the range
[0,1). `arc4.random( n )` and `arc4.random( m, n )` return a random
integer in the range [1,n] and [m,n] respectively. All three cases match
-the behavior of `math.random`.
+the behavior of `math.random` so you can do `math.random = arc4.random`
+and everything will keep working.
`arc4.buf( n )` returns a string of `n` random characters. It is
-suitable for generating private keys and IVs.
+suitable for generating private encryption keys and IVs.
Some example code: