summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-01-18 07:22:09 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-01-18 07:22:09 +0000
commit9b600848ba705ea9cc53617293c233a37aea2d5c (patch)
tree16819d9e0c7baaa32fa8bac683f316aa9d99fc6f /sys
parentd6cce45a5cb80fd83e7714574ead7cab7c04c10e (diff)
Fix comment re size of input buffer.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/stand/libsa/random_i386.S3
-rw-r--r--sys/arch/i386/stand/libsa/random_i386.S3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/random_i386.S b/sys/arch/amd64/stand/libsa/random_i386.S
index a2bb35ffeb0..987c0a25fca 100644
--- a/sys/arch/amd64/stand/libsa/random_i386.S
+++ b/sys/arch/amd64/stand/libsa/random_i386.S
@@ -20,7 +20,8 @@
#include <machine/specialreg.h>
/*
- * Buffer size must be multiple of 4
+ * Random data is xored into the buffer in 4 byte blocks. If the buffer size
+ * is not a multiple of 4, the remaining bytes will be left untouched.
*/
ENTRY(mdrandom)
pushal
diff --git a/sys/arch/i386/stand/libsa/random_i386.S b/sys/arch/i386/stand/libsa/random_i386.S
index a2bb35ffeb0..987c0a25fca 100644
--- a/sys/arch/i386/stand/libsa/random_i386.S
+++ b/sys/arch/i386/stand/libsa/random_i386.S
@@ -20,7 +20,8 @@
#include <machine/specialreg.h>
/*
- * Buffer size must be multiple of 4
+ * Random data is xored into the buffer in 4 byte blocks. If the buffer size
+ * is not a multiple of 4, the remaining bytes will be left untouched.
*/
ENTRY(mdrandom)
pushal