Module Name: src
Committed By: riastradh
Date: Mon Nov 17 15:06:59 UTC 2014
Modified Files:
src/lib/libc/gen: arc4random.3
Log Message:
Markup for BUGS note about arc4random_uniform.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/arc4random.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/arc4random.3
diff -u src/lib/libc/gen/arc4random.3:1.14 src/lib/libc/gen/arc4random.3:1.15
--- src/lib/libc/gen/arc4random.3:1.14 Mon Nov 17 15:05:12 2014
+++ src/lib/libc/gen/arc4random.3 Mon Nov 17 15:06:59 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: arc4random.3,v 1.14 2014/11/17 15:05:12 riastradh Exp $
+.\" $NetBSD: arc4random.3,v 1.15 2014/11/17 15:06:59 riastradh Exp $
.\"
.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -269,8 +269,11 @@ length.
But it's too late to change that now.
.Pp
.Fn arc4random_uniform
-does not help to choose integers in [0, n) uniformly at random when n >
-2^32.
+does not help to choose integers in [0,
+.Fa n Ns )
+uniformly at random when
+.Fa n
+> 2^32.
.Pp
The security model of
.Nm