diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-06-15 06:48:15 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-06-15 06:48:15 +0000 |
commit | b850711459d9a367e01f1edb72b58051dc86c94e (patch) | |
tree | 5a4c56f7fd71d18df62d04b7f404870ce5b3f5e8 /share | |
parent | 20f40c745e984ee525dc5873bfb792d24da50259 (diff) |
update
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/random.9 | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/share/man/man9/random.9 b/share/man/man9/random.9 index 2c4f30f3093..8b4cfe77a44 100644 --- a/share/man/man9/random.9 +++ b/share/man/man9/random.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: random.9,v 1.1 1996/12/17 22:56:04 millert Exp $ +.\" $OpenBSD: random.9,v 1.2 1997/06/15 06:48:14 mickey Exp $ .\" .\" Copyright (c) 1996 Michael Shalayeff .\" All rights reserved. @@ -36,21 +36,31 @@ .Nd device kernel interface .Sh SYNOPSIS .Fd #include <dev/rndvar.h> -.Va void add_tty_randomness(dev_t dev); +.Va void add_mouse_randomness(u_int32_t); +.br +.Va void add_tty_randomness(int); .br .Va void add_net_randomness(int isr); .br -.Va void add_blkdev_randomness(dev_t dev); +.Va void add_blkdev_randomness(u_int32_t); .br .Va void get_random_bytes(void *buf, size_t nbytes); .br +.Va u_int32_t arc4random(void); +.br .Sh DESCRIPTION -add_{tty,net,blkdev}_randomness routines used to supply data +add_{mouse,tty,net,blkdev}_randomness routines used to supply data for the random data source device for future processing. .Pp -get_random_bytes maybe used to retrive strong random data, just +.Nm get_random_bytes +maybe used to retrive strong random data, just as it would by .Xr srandom 4 device. +.br +.Nm arc4random +will give you random 32 bit number hashed with aRC4 algorythm, +wich appeared to be faster. .Sh SEE ALSO -.Xr random 4 +.Xr random 4 , +.Xr arc4random 3 |