diff options
author | ache <ache@FreeBSD.org> | 1997-06-14 00:14:29 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-14 00:14:29 +0000 |
commit | 98ddc15c28ed1a38237156f5d5c73c6ddecf0ec9 (patch) | |
tree | 2103ee8dd8d4d042d62af7d59cb5b43245862624 /lib/libc/stdlib/random.3 | |
parent | f0711d970f9e49e9bc86224544dbf59e22c16000 (diff) | |
download | FreeBSD-src-98ddc15c28ed1a38237156f5d5c73c6ddecf0ec9.zip FreeBSD-src-98ddc15c28ed1a38237156f5d5c73c6ddecf0ec9.tar.gz |
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.
Diffstat (limited to 'lib/libc/stdlib/random.3')
-rw-r--r-- | lib/libc/stdlib/random.3 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index 2195084..4691498 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -47,7 +47,7 @@ .Fn random void .Ft void .Fn srandom "unsigned long seed" -.Ft int +.Ft void .Fn srandomdev void .Ft char * .Fn initstate "unsigned long seed" "char *state" "long n" @@ -108,11 +108,6 @@ calling with any value, since the succeeding terms in the state buffer are no longer derived from the LC algorithm applied to a fixed seed. -If successful -.Fn srandomdev -returns 0. It returns -1 on failure, and sets -.Va errno -to indicate the error. .Pp The .Fn initstate |