From 8c8d34acf3fb7756dc1d1c6a68affe50ce483184 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Sun, 16 Mar 2008 22:18:24 +0000 Subject: [PATCH] - add NAME entries for arc4random_buf and arc4random_uniform - simplify a macro call (Do/Dc -> Dq) --- src/lib/libc/crypt/arc4random.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3 index d32ea4a9..9c9ab870 100644 --- a/src/lib/libc/crypt/arc4random.3 +++ b/src/lib/libc/crypt/arc4random.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: arc4random.3,v 1.23 2008/03/16 19:47:43 otto Exp $ +.\" $OpenBSD: arc4random.3,v 1.24 2008/03/16 22:18:24 jmc Exp $ .\" .\" Copyright 1997 Niels Provos .\" All rights reserved. @@ -35,6 +35,8 @@ .Os .Sh NAME .Nm arc4random , +.Nm arc4random_buf , +.Nm arc4random_uniform , .Nm arc4random_stir , .Nm arc4random_addrandom .Nd arc4 random number generator @@ -89,7 +91,7 @@ will return a uniformly distributed random number less than .Fa upper_bound . .Fn arc4random_uniform is recommended over constructions like -.Do Li arc4random() % upper_bound Dc +.Dq Li arc4random() % upper_bound as it avoids "modulo bias" when the upper bound is not a power of two. .Pp The