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. 1290045Sobrien * 1390045Sobrien * $FreeBSD$ 143016Swollman */ 153016Swollman 163016Swollman#ifndef _RAND48_H_ 173016Swollman#define _RAND48_H_ 183016Swollman 193016Swollman#include <math.h> 203016Swollman#include <stdlib.h> 213016Swollman 2290045Sobrienvoid _dorand48(unsigned short[3]); 233016Swollman 243016Swollman#define RAND48_SEED_0 (0x330e) 253016Swollman#define RAND48_SEED_1 (0xabcd) 263016Swollman#define RAND48_SEED_2 (0x1234) 273016Swollman#define RAND48_MULT_0 (0xe66d) 283016Swollman#define RAND48_MULT_1 (0xdeec) 293016Swollman#define RAND48_MULT_2 (0x0005) 303016Swollman#define RAND48_ADD (0x000b) 313016Swollman 323016Swollman#endif /* _RAND48_H_ */ 33