Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Markup for BUGS note about arc4random_uniform.



details:   https://anonhg.NetBSD.org/src/rev/9e3e10f96da3
branches:  trunk
changeset: 333819:9e3e10f96da3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Nov 17 15:06:59 2014 +0000

description:
Markup for BUGS note about arc4random_uniform.

diffstat:

 lib/libc/gen/arc4random.3 |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 2de5e9790597 -r 9e3e10f96da3 lib/libc/gen/arc4random.3
--- a/lib/libc/gen/arc4random.3 Mon Nov 17 15:05:12 2014 +0000
+++ b/lib/libc/gen/arc4random.3 Mon Nov 17 15:06:59 2014 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index