• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*	$NetBSD: rand48.h,v 1.6 2011/05/18 19:36:36 dsl Exp $	*/
2  
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.
14   */
15  
16  #ifndef _RAND48_H_
17  #define _RAND48_H_
18  
19  #include <stdlib.h>
20  
21  extern void		__dorand48(unsigned short[3]);
22  extern unsigned short	__rand48_seed[3];
23  extern unsigned short	__rand48_mult[3];
24  extern unsigned short	__rand48_add;
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_ */
35