diff options
author | guenther <> | 2015-08-27 04:33:31 +0000 |
---|---|---|
committer | guenther <> | 2015-08-27 04:33:31 +0000 |
commit | 809239262088f866c609ff697c71459aba004e00 (patch) | |
tree | c292559d08ad513b7c50ca095f932d69574c8c44 /src/lib/libc/stdlib/rand48.h | |
parent | bd55fe52542759d547f63faf9b00c12e56e2dbf3 (diff) | |
download | openbsd-809239262088f866c609ff697c71459aba004e00.tar.gz openbsd-809239262088f866c609ff697c71459aba004e00.tar.bz2 openbsd-809239262088f866c609ff697c71459aba004e00.zip |
Move the __rand48_* declarations into rand48.h, and then hide both them
and __dorand48() and __rand48_deterministic
ok deraadt@
Diffstat (limited to 'src/lib/libc/stdlib/rand48.h')
-rw-r--r-- | src/lib/libc/stdlib/rand48.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/rand48.h b/src/lib/libc/stdlib/rand48.h index ee70174744..fff289927f 100644 --- a/src/lib/libc/stdlib/rand48.h +++ b/src/lib/libc/stdlib/rand48.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * of any kind. I shall in no event be liable for anything that happens | 10 | * of any kind. I shall in no event be liable for anything that happens |
11 | * to anyone/anything when using this software. | 11 | * to anyone/anything when using this software. |
12 | * | 12 | * |
13 | * $OpenBSD: rand48.h,v 1.4 2014/12/08 21:45:20 deraadt Exp $ | 13 | * $OpenBSD: rand48.h,v 1.5 2015/08/27 04:33:31 guenther Exp $ |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef _RAND48_H_ | 16 | #ifndef _RAND48_H_ |
@@ -19,8 +19,14 @@ | |||
19 | #include <math.h> | 19 | #include <math.h> |
20 | #include <stdlib.h> | 20 | #include <stdlib.h> |
21 | 21 | ||
22 | __BEGIN_HIDDEN_DECLS | ||
23 | extern unsigned short __rand48_seed[3]; | ||
24 | extern unsigned short __rand48_mult[3]; | ||
25 | extern unsigned short __rand48_add; | ||
26 | |||
22 | void __dorand48(unsigned short[3]); | 27 | void __dorand48(unsigned short[3]); |
23 | extern int __rand48_deterministic; | 28 | extern int __rand48_deterministic; |
29 | __END_HIDDEN_DECLS | ||
24 | 30 | ||
25 | #define RAND48_SEED_0 (0x330e) | 31 | #define RAND48_SEED_0 (0x330e) |
26 | #define RAND48_SEED_1 (0xabcd) | 32 | #define RAND48_SEED_1 (0xabcd) |