blob: 1ad8b0d21c4ac2c94ded72a6e3a0230dcb6f7f43 [file] [log] [blame]
Elliott Hughes774c7f52012-10-01 13:11:03 -07001/* $NetBSD: rand48.h,v 1.6 2011/05/18 19:36:36 dsl Exp $ */
2
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08003/*
4 * Copyright (c) 1993 Martin Birgmeier
5 * All rights reserved.
6 *
7 * You may redistribute unmodified or modified versions of this source
8 * code provided that the above copyright notice and this and the
9 * following conditions are retained.
10 *
11 * This software is provided ``as is'', and comes with no warranties
12 * of any kind. I shall in no event be liable for anything that happens
13 * to anyone/anything when using this software.
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080014 */
15
16#ifndef _RAND48_H_
17#define _RAND48_H_
18
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019#include <stdlib.h>
20
Elliott Hughes774c7f52012-10-01 13:11:03 -070021extern void __dorand48(unsigned short[3]);
22extern unsigned short __rand48_seed[3];
23extern unsigned short __rand48_mult[3];
24extern unsigned short __rand48_add;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025
26#define RAND48_SEED_0 (0x330e)
27#define RAND48_SEED_1 (0xabcd)
28#define RAND48_SEED_2 (0x1234)
29#define RAND48_MULT_0 (0xe66d)
30#define RAND48_MULT_1 (0xdeec)
31#define RAND48_MULT_2 (0x0005)
32#define RAND48_ADD (0x000b)
33
34#endif /* _RAND48_H_ */