aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/md_rand.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-01-21 20:18:09 +0000
committerBodo Möller <bodo@openssl.org>2000-01-21 20:18:09 +0000
commit2c8aeddc5d3589bc8ab25fc85e050f2954b0f55d (patch)
treef0381a6a17386182e20957a0308026463f6a86c8 /crypto/rand/md_rand.c
parent720b3598d6b5c6cac7807ef9121820d35bc0be1d (diff)
downloadopenssl-2c8aeddc5d3589bc8ab25fc85e050f2954b0f55d.zip
openssl-2c8aeddc5d3589bc8ab25fc85e050f2954b0f55d.tar.gz
openssl-2c8aeddc5d3589bc8ab25fc85e050f2954b0f55d.tar.bz2
change comments
Diffstat (limited to 'crypto/rand/md_rand.c')
-rw-r--r--crypto/rand/md_rand.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index 18b8e8d..d6f47b6 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -322,19 +322,20 @@ static int ssleay_rand_bytes(unsigned char *buf, int num)
#endif
/*
- * (Based on doc/ssleay.txt, section rand.doc:)
+ * (Based on the rand(3) manpage:)
*
- * For each group of 8 bytes (or less), we do the following,
+ * For each group of 8 bytes (or less), we do the following:
*
- * Input into MD5, the top 8 bytes from 'md', the byte that are
- * to be overwritten by the random bytes and bytes from the
+ * Input into the hash function the top 8 bytes from 'md', 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 (upto) 8 bytes are
* returned to the caller and the bottom (upto) 8 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 globl 'md'
- * are fed into MD5 and the results are kept in the global 'md'.
+ * caller, 'count' (which is incremented) and the local and global 'md'
+ * are fed into the hash function and the results are kept in the
+ * global 'md'.
*/
CRYPTO_w_lock(CRYPTO_LOCK_RAND);