diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-09 02:26:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-09 02:26:32 +0000 |
commit | 1866ec1660ed1f7b89a4568b4d90c733524b48d3 (patch) | |
tree | cce3b018e7a73f60b9acd1b2176966406585618b /share/man/man9 | |
parent | 38b9d71381138b26d25021421be9263d67b91b16 (diff) |
Upon consideration, random(9) should definately not be documented. It
is not for use by other things (and is not used that way, typically very
MD). Perhaps we should rename it to something else...
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/Makefile | 5 | ||||
-rw-r--r-- | share/man/man9/kern.9 | 30 |
2 files changed, 5 insertions, 30 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 21af953f884..fb387aec33a 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.161 2011/01/09 02:21:42 deraadt Exp $ +# $OpenBSD: Makefile,v 1.162 2011/01/09 02:26:31 deraadt Exp $ # $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -183,8 +183,7 @@ MLINKS+=kern.9 imax.9 kern.9 imin.9 kern.9 lmax.9 kern.9 lmin.9 \ kern.9 memchr.9 kern.9 memcmp.9 kern.9 ffs.9 \ kern.9 strlen.9 kern.9 strncpy.9 kern.9 strlcpy.9 kern.9 strlcat.9 \ kern.9 strcmp.9 kern.9 strncmp.9 kern.9 strncasecmp.9 \ - kern.9 srandom.9 kern.9 random.9 kern.9 timingsafe_bcmp.9 \ - kern.9 getsn.9 + kern.9 timingsafe_bcmp.9 kern.9 getsn.9 MLINKS+=knote.9 KNOTE.9 MLINKS+=kthread.9 kthread_create.9 kthread.9 kthread_exit.9 \ kthread.9 kthread_create_deferred.9 diff --git a/share/man/man9/kern.9 b/share/man/man9/kern.9 index c4e5190d66b..5edc5a8101d 100644 --- a/share/man/man9/kern.9 +++ b/share/man/man9/kern.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kern.9,v 1.13 2010/09/24 13:33:00 matthew Exp $ +.\" $OpenBSD: kern.9,v 1.14 2011/01/09 02:26:31 deraadt Exp $ .\" .\" Copyright (c) 2002, 2003 CubeSoft Communications, Inc. .\" <http://www.csoft.org> @@ -24,7 +24,7 @@ .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 24 2010 $ +.Dd $Mdocdate: January 9 2011 $ .Dt KERN 9 .Os .Sh NAME @@ -184,29 +184,6 @@ Those functions have the same semantics as their libc counterparts, .Xr strncmp 3 and .Xr strncasecmp 3 . -.Sh RANDOM NUMBER GENERATION -.nr nS 1 -.Ft u_long -.Fn random "void" -.Ft void -.Fn srandom "u_long seed" -.nr nS 0 -.Pp -The -.Fn random -function returns a random number. -The -.Fn srandom -function initializes the random seed. -.Fn random -will by default produce a sequence of numbers that can be duplicated -by calling -.Fn srandom -with `1' as the seed. -The -.Fn random -function is discouraged in favor of -.Xr arc4random 9 . .Sh MISCELLANEOUS .nr nS 1 .Ft int @@ -227,8 +204,7 @@ bytes long. .Xr ffs 3 , .Xr memchr 3 , .Xr memcmp 3 , -.Xr string 3 , -.Xr arc4random 9 +.Xr string 3 .Sh STANDARDS The .Fn abs , |