diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/crypt/arc4random.3 | 7 | ||||
| -rw-r--r-- | src/lib/libc/net/getservent.3 | 3 | ||||
| -rw-r--r-- | src/lib/libc/stdlib/random.3 | 13 | ||||
| -rw-r--r-- | src/lib/libc/stdlib/tsearch.3 | 4 |
4 files changed, 9 insertions, 18 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3 index bcf98bd964..988de1d0f6 100644 --- a/src/lib/libc/crypt/arc4random.3 +++ b/src/lib/libc/crypt/arc4random.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: arc4random.3,v 1.9 1999/06/30 01:40:18 deraadt Exp $ | 1 | .\" $OpenBSD: arc4random.3,v 1.10 1999/07/04 18:59:42 aaron Exp $ |
| 2 | .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 2 | .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
| 3 | .\" All rights reserved. | 3 | .\" All rights reserved. |
| 4 | .\" | 4 | .\" |
| @@ -50,10 +50,7 @@ The | |||
| 50 | .Fn arc4random | 50 | .Fn arc4random |
| 51 | function uses the key stream generator employed by the | 51 | function uses the key stream generator employed by the |
| 52 | arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes | 52 | arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes |
| 53 | can be in about | 53 | can be in about (2**1700) states. |
| 54 | .if t 2\u\s71700\s10\d | ||
| 55 | .if n (2**1700) | ||
| 56 | states. | ||
| 57 | .Pp | 54 | .Pp |
| 58 | The | 55 | The |
| 59 | .Fn arc4random_stir | 56 | .Fn arc4random_stir |
diff --git a/src/lib/libc/net/getservent.3 b/src/lib/libc/net/getservent.3 index 6badd85337..477d34249d 100644 --- a/src/lib/libc/net/getservent.3 +++ b/src/lib/libc/net/getservent.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: getservent.3,v 1.6 1999/05/25 01:50:58 aaron Exp $ | 1 | .\" $OpenBSD: getservent.3,v 1.7 1999/07/04 18:59:43 aaron Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1983, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1991, 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -124,7 +124,6 @@ is encountered. | |||
| 124 | If a protocol name is also supplied (non- | 124 | If a protocol name is also supplied (non- |
| 125 | .Dv NULL ) , | 125 | .Dv NULL ) , |
| 126 | searches must also match the protocol. | 126 | searches must also match the protocol. |
| 127 | .ne 1i | ||
| 128 | .Sh FILES | 127 | .Sh FILES |
| 129 | .Bl -tag -width /etc/services -compact | 128 | .Bl -tag -width /etc/services -compact |
| 130 | .It Pa /etc/services | 129 | .It Pa /etc/services |
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3 index e1ab9e44da..7b8a566115 100644 --- a/src/lib/libc/stdlib/random.3 +++ b/src/lib/libc/stdlib/random.3 | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 31 | .\" | 31 | .\" |
| 32 | .\" $OpenBSD: random.3,v 1.8 1999/06/29 18:36:23 aaron Exp $ | 32 | .\" $OpenBSD: random.3,v 1.9 1999/07/04 18:59:43 aaron Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd April 19, 1991 | 34 | .Dd April 19, 1991 |
| 35 | .Dt RANDOM 3 | 35 | .Dt RANDOM 3 |
| @@ -56,9 +56,7 @@ The | |||
| 56 | function | 56 | function |
| 57 | uses a non-linear additive feedback random number generator employing a | 57 | uses a non-linear additive feedback random number generator employing a |
| 58 | default table of size 31 long integers to return successive pseudo-random | 58 | default table of size 31 long integers to return successive pseudo-random |
| 59 | numbers in the range from 0 to | 59 | numbers in the range from 0 to (2**31)\-1. |
| 60 | .if t 2\u\s731\s10\d\(mi1. | ||
| 61 | .if n (2**31)\(mi1. | ||
| 62 | The maximum value returned by | 60 | The maximum value returned by |
| 63 | .Fn random | 61 | .Fn random |
| 64 | is | 62 | is |
| @@ -66,8 +64,7 @@ is | |||
| 66 | (as defined by the header file | 64 | (as defined by the header file |
| 67 | .Aq Pa limits.h ) . | 65 | .Aq Pa limits.h ) . |
| 68 | The period of this random number generator is very large, approximately | 66 | The period of this random number generator is very large, approximately |
| 69 | .if t 16\(mu(2\u\s731\s10\d\(mi1). | 67 | 16*((2**31)\-1. |
| 70 | .if n 16*((2**31)\(mi1). | ||
| 71 | .Pp | 68 | .Pp |
| 72 | The | 69 | The |
| 73 | .Fn random Ns / Fn srandom | 70 | .Fn random Ns / Fn srandom |
| @@ -148,9 +145,7 @@ is that the size of the state array does not have to be remembered after | |||
| 148 | it is initialized. | 145 | it is initialized. |
| 149 | .Pp | 146 | .Pp |
| 150 | With 256 bytes of state information, the period of the random number | 147 | With 256 bytes of state information, the period of the random number |
| 151 | generator is greater than | 148 | generator is greater than 2**69 |
| 152 | .if t 2\u\s769\s10\d, | ||
| 153 | .if n 2**69 | ||
| 154 | which should be sufficient for most purposes. | 149 | which should be sufficient for most purposes. |
| 155 | .Sh AUTHOR | 150 | .Sh AUTHOR |
| 156 | Earl T. Cohen | 151 | Earl T. Cohen |
diff --git a/src/lib/libc/stdlib/tsearch.3 b/src/lib/libc/stdlib/tsearch.3 index 8456457e27..79e220e2cb 100644 --- a/src/lib/libc/stdlib/tsearch.3 +++ b/src/lib/libc/stdlib/tsearch.3 | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 23 | .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 24 | .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 | .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 | .\" | 25 | .\" |
| 26 | .\" $OpenBSD: tsearch.3,v 1.5 1999/06/29 18:36:24 aaron Exp $ | 26 | .\" $OpenBSD: tsearch.3,v 1.6 1999/07/04 18:59:43 aaron Exp $ |
| 27 | .\" | 27 | .\" |
| 28 | .Dd June 15, 1997 | 28 | .Dd June 15, 1997 |
| 29 | .Dt TSEARCH 3 | 29 | .Dt TSEARCH 3 |
| @@ -84,7 +84,7 @@ will be adjusted. | |||
| 84 | .Pp | 84 | .Pp |
| 85 | .Fn twalk | 85 | .Fn twalk |
| 86 | walks the binary search tree rooted in | 86 | walks the binary search tree rooted in |
| 87 | .fa root | 87 | .Fa root |
| 88 | and calls the function | 88 | and calls the function |
| 89 | .Fa action | 89 | .Fa action |
| 90 | on each node. | 90 | on each node. |
