rand48.h revision 3016
13016Swollman/* 23016Swollman * Copyright (c) 1993 Martin Birgmeier 33016Swollman * All rights reserved. 43016Swollman * 53016Swollman * You may redistribute unmodified or modified versions of this source 63016Swollman * code provided that the above copyright notice and this and the 73016Swollman * following conditions are retained. 83016Swollman * 93016Swollman * This software is provided ``as is'', and comes with no warranties 103016Swollman * of any kind. I shall in no event be liable for anything that happens 113016Swollman * to anyone/anything when using this software. 123016Swollman */ 133016Swollman 143016Swollman#ifndef _RAND48_H_ 153016Swollman#define _RAND48_H_ 163016Swollman 173016Swollman#include <math.h> 183016Swollman#include <stdlib.h> 193016Swollman 203016Swollmanvoid _dorand48 __P((unsigned short[3])); 213016Swollman 223016Swollman#define RAND48_SEED_0 (0x330e) 233016Swollman#define RAND48_SEED_1 (0xabcd) 243016Swollman#define RAND48_SEED_2 (0x1234) 253016Swollman#define RAND48_MULT_0 (0xe66d) 263016Swollman#define RAND48_MULT_1 (0xdeec) 273016Swollman#define RAND48_MULT_2 (0x0005) 283016Swollman#define RAND48_ADD (0x000b) 293016Swollman 303016Swollman#endif /* _RAND48_H_ */ 31