summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/rand48.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-27 04:33:31 +0000
committerguenther <guenther@openbsd.org>2015-08-27 04:33:31 +0000
commite90fdadc95f494eca97c1ac0d02182e195b5f664 (patch)
tree7870672ba16f01d3b951afd04f26c0d268103b0d /lib/libc/stdlib/rand48.h
parentUse kbind for lazy binding GOT/PLT updates on hppa. (diff)
downloadwireguard-openbsd-e90fdadc95f494eca97c1ac0d02182e195b5f664.tar.xz
wireguard-openbsd-e90fdadc95f494eca97c1ac0d02182e195b5f664.zip
Move the __rand48_* declarations into rand48.h, and then hide both them
and __dorand48() and __rand48_deterministic ok deraadt@
Diffstat (limited to 'lib/libc/stdlib/rand48.h')
-rw-r--r--lib/libc/stdlib/rand48.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/stdlib/rand48.h b/lib/libc/stdlib/rand48.h
index ee701747442..fff289927fc 100644
--- a/lib/libc/stdlib/rand48.h
+++ b/lib/libc/stdlib/rand48.h
@@ -10,7 +10,7 @@
* of any kind. I shall in no event be liable for anything that happens
* to anyone/anything when using this software.
*
- * $OpenBSD: rand48.h,v 1.4 2014/12/08 21:45:20 deraadt Exp $
+ * $OpenBSD: rand48.h,v 1.5 2015/08/27 04:33:31 guenther Exp $
*/
#ifndef _RAND48_H_
@@ -19,8 +19,14 @@
#include <math.h>
#include <stdlib.h>
+__BEGIN_HIDDEN_DECLS
+extern unsigned short __rand48_seed[3];
+extern unsigned short __rand48_mult[3];
+extern unsigned short __rand48_add;
+
void __dorand48(unsigned short[3]);
extern int __rand48_deterministic;
+__END_HIDDEN_DECLS
#define RAND48_SEED_0 (0x330e)
#define RAND48_SEED_1 (0xabcd)