| Elliott Hughes | 774c7f5 | 2012-10-01 13:11:03 -0700 | [diff] [blame] | 1 | /*	$NetBSD: rand48.h,v 1.6 2011/05/18 19:36:36 dsl Exp $	*/ | 
|  | 2 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 3 | /* | 
|  | 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 Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 14 | */ | 
|  | 15 |  | 
|  | 16 | #ifndef _RAND48_H_ | 
|  | 17 | #define _RAND48_H_ | 
|  | 18 |  | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 19 | #include <stdlib.h> | 
|  | 20 |  | 
| Elliott Hughes | 809093b | 2014-06-09 18:10:20 -0700 | [diff] [blame] | 21 | __LIBC_HIDDEN__ void		__dorand48(unsigned short[3]); | 
|  | 22 | __LIBC_HIDDEN__ unsigned short	__rand48_seed[3]; | 
|  | 23 | __LIBC_HIDDEN__ unsigned short	__rand48_mult[3]; | 
|  | 24 | __LIBC_HIDDEN__ unsigned short	__rand48_add; | 
| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 25 |  | 
|  | 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_ */ |