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/83338530e35f
branches:  trunk
changeset: 803961:83338530e35f
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 b045f8e78f3b -r 83338530e35f 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