ed
a663be12a0
Fix typing of srandom() and initstate().
...
POSIX requires that these functions have an unsigned int for their first
argument; not an unsigned long.
My reasoning is that we can safely change these functions without
breaking the ABI. As far as I know, our supported architectures either
use registers for passing function arguments that are at least as big as
long (e.g., amd64), or int and long are of the same size (e.g., i386).
Reviewed by: ache
Differential Revision: https://reviews.freebsd.org/D6644
2016-07-26 20:11:29 +00:00
ache
35ed790017
Reflect error indication according to POSIX and what those functions
...
currently do.
2016-06-05 15:46:14 +00:00
cperciva
7f661e0eb8
Adjust wording slightly to emphasize that random(3) should not be used for
...
any applications which need unpredictable random numbers, not merely those
which are cryptographic in nature.
If you work for a lottery and you're using random(3) to select the winning
numbers, please let me know.
2015-02-25 07:49:15 +00:00
emaste
a027d64fa7
Renumber clauses to reduce diffs to other versions
...
NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3,
so follow suit to make comparison easier.
2013-06-13 00:19:30 +00:00
delphij
08ef412169
Replace access to /dev/random with the kernel pseudo-random number
...
source sysctl(KERN_ARND) and remove the fallback code.
Obtained from: OpenBSD
Reviewed by: secteam
MFC after: 1 month
2013-04-02 23:41:20 +00:00
des
33eb85902d
Add the same warning to rand48(3) as to rand(3) and random(3).
...
MFC after: 3 days
2012-09-11 12:55:15 +00:00
des
7c43d2b090
Bump dates.
...
Reminded by: bz@
2012-09-04 22:03:16 +00:00
des
2d0a5cb1e0
Add a prominent warning about these functions' unsuitability for
...
cryptographic purposes, and recommend using arc4random(3) instead.
2012-09-04 21:40:53 +00:00
kib
7f328b5183
Add cross-references to lrand48(3) and arc4random(3) from rand(3)
...
and random(3).
Submitted by: Valentin Nechayev <netch netch kiev ua>
MFC after: 1 week
2010-10-06 09:05:47 +00:00
imp
cd1f140ae4
Per Regents of the University of Calfornia letter, remove advertising
...
clause.
# If I've done so improperly on a file, please let me know.
2007-01-09 00:28:16 +00:00
ru
ed72feddcb
Sort sections.
2005-01-20 09:17:07 +00:00
ru
01548ace15
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
das
4a73cae22c
Cross-reference arc4random(3).
2003-07-31 06:18:34 +00:00
schweikh
6856bac682
Fix grammar bogons.
...
MFC after: 3 days
2003-05-31 21:14:41 +00:00
asmodai
a04d04aa06
Move to using .In instead of .Fd #include <> for include mark-up.
...
Inspired by comment from: dd
2001-09-07 14:46:36 +00:00
dd
a145482cf6
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
ru
317b7d8e37
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 13:41:46 +00:00
dd
eaa6ee03b8
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
dd
075fc28fc8
urandom(4) -> random(4)
...
PR: 27858
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
Approved by: markm
2001-06-07 02:31:03 +00:00
phantom
5401879e3b
Introduce ".Lb" macro to libc manpages.
...
More libraries manpages updates following.
2000-04-21 09:42:15 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
nik
f7a8bc4c04
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:50:10 +00:00
charnier
79fc0e5555
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq
1998-03-19 07:34:22 +00:00
ache
98ddc15c28
Instead of copying fallback code over and over in each program,
...
implement (better) falback code inside srandomdev() itself.
Change return type from int to void (binary compatibility surprisely
achieved). Userland code will be changed soon.
1997-06-14 00:14:29 +00:00
ache
869ea014d0
Remove orand* code as promised for the next release
1997-03-29 19:55:03 +00:00
ache
d2a19efd66
Add srandomdev() description
1997-03-23 23:08:31 +00:00
mpp
739a0bf676
Use the .Tn macro for generic FreeBSD references. Other minor cleanup.
1997-03-21 20:57:20 +00:00
ache
30ee004f83
Fix arg types to match Lite2
1997-03-17 16:27:16 +00:00
ache
c00dcd7b7a
Improve seeding, the random sequence did not vary match
...
with the seed. Old variant will be available via libcompat soon.
1996-10-09 15:59:04 +00:00
mpp
822fdcab93
Added missing section numbers to a bunch of .Xr macros, or
...
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.
1996-03-27 20:49:07 +00:00
rgrimes
be22b15ae2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00