aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-07-10 10:49:34 +0000
committerBodo Möller <bodo@openssl.org>2001-07-10 10:49:34 +0000
commite9ad0d2c31997643e1a7bcacddf8d15a930b5cb8 (patch)
tree43c609ffcd9b602c75d0e2a83687c397dc26a1cc /doc
parent97639f0d7335dc8a5b24b289280d84edace5c3d3 (diff)
downloadopenssl-e9ad0d2c31997643e1a7bcacddf8d15a930b5cb8.tar.gz
Fix PRNG.
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/rand.pod13
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/crypto/rand.pod b/doc/crypto/rand.pod
index 9545f0e109..96901f109e 100644
--- a/doc/crypto/rand.pod
+++ b/doc/crypto/rand.pod
@@ -127,13 +127,12 @@ function and xor).
When bytes are extracted from the RNG, the following process is used.
For each group of 10 bytes (or less), we do the following:
-Input into the hash function the top 10 bytes from the local 'md'
-(which is initialized from the global 'md' before any bytes are
-generated), the bytes that are to be overwritten by the random bytes,
-and bytes from the 'state' (incrementing looping index). From this
-digest output (which is kept in 'md'), the top (up to) 10 bytes are
-returned to the caller and the bottom (up to) 10 bytes are xored into
-the 'state'.
+Input into the hash function the local 'md' (which is initialized from
+the global 'md' before any bytes are generated), the bytes that are to
+be overwritten by the random bytes, and bytes from the 'state'
+(incrementing looping index). From this digest output (which is kept
+in 'md'), the top (up to) 10 bytes are returned to the caller and the
+bottom 10 bytes are xored into the 'state'.
Finally, after we have finished 'num' random bytes for the caller,
'count' (which is incremented) and the local and global 'md' are fed