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.3 jtc #include "namespace.h" 15 1.1 brezak #include "rand48.h" 16 1.1 brezak 17 1.3 jtc #ifdef __weak_alias 18 1.3 jtc __weak_alias(lcong48,_lcong48); 19 1.3 jtc #endif 20 1.1 brezak 21 1.1 brezak void 22 1.1 brezak lcong48(unsigned short p[7]) 23 1.1 brezak { 24 1.2 jtc __rand48_seed[0] = p[0]; 25 1.2 jtc __rand48_seed[1] = p[1]; 26 1.2 jtc __rand48_seed[2] = p[2]; 27 1.2 jtc __rand48_mult[0] = p[3]; 28 1.2 jtc __rand48_mult[1] = p[4]; 29 1.2 jtc __rand48_mult[2] = p[5]; 30 1.2 jtc __rand48_add = p[6]; 31 1.1 brezak } 32