Home | History | Annotate | Line # | Download | only in stdlib
rand48.h revision 1.2.8.1
      1      1.1  brezak /*
      2      1.1  brezak  * Copyright (c) 1993 Martin Birgmeier
      3      1.1  brezak  * All rights reserved.
      4      1.1  brezak  *
      5      1.1  brezak  * You may redistribute unmodified or modified versions of this source
      6      1.1  brezak  * code provided that the above copyright notice and this and the
      7      1.1  brezak  * following conditions are retained.
      8      1.1  brezak  *
      9      1.1  brezak  * This software is provided ``as is'', and comes with no warranties
     10      1.1  brezak  * of any kind. I shall in no event be liable for anything that happens
     11      1.1  brezak  * to anyone/anything when using this software.
     12      1.1  brezak  */
     13      1.1  brezak 
     14      1.1  brezak #ifndef _RAND48_H_
     15      1.1  brezak #define _RAND48_H_
     16      1.1  brezak 
     17      1.1  brezak #include <math.h>
     18      1.1  brezak #include <stdlib.h>
     19      1.1  brezak 
     20  1.2.8.1     jtc extern void		__dorand48 __P((unsigned short[3]));
     21  1.2.8.1     jtc extern unsigned short	__rand48_seed[3];
     22  1.2.8.1     jtc extern unsigned short	__rand48_mult[3];
     23  1.2.8.1     jtc extern unsigned short	__rand48_add;
     24  1.2.8.1     jtc 
     25  1.2.8.1     jtc 
     26  1.2.8.1     jtc 
     27      1.1  brezak 
     28      1.1  brezak #define	RAND48_SEED_0	(0x330e)
     29      1.1  brezak #define	RAND48_SEED_1	(0xabcd)
     30      1.1  brezak #define	RAND48_SEED_2	(0x1234)
     31      1.1  brezak #define	RAND48_MULT_0	(0xe66d)
     32      1.1  brezak #define	RAND48_MULT_1	(0xdeec)
     33      1.1  brezak #define	RAND48_MULT_2	(0x0005)
     34      1.1  brezak #define	RAND48_ADD	(0x000b)
     35      1.1  brezak 
     36      1.1  brezak #endif /* _RAND48_H_ */
     37