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
1492986Sobrien#include <sys/cdefs.h>
1592986Sobrien__FBSDID("$FreeBSD$");
1692986Sobrien
173016Swollman#include "rand48.h"
183016Swollman
193016Swollmanextern unsigned short _rand48_seed[3];
203016Swollmanextern unsigned short _rand48_mult[3];
213016Swollmanextern unsigned short _rand48_add;
223016Swollman
233016Swollmanvoid
243016Swollmanlcong48(unsigned short p[7])
253016Swollman{
263016Swollman	_rand48_seed[0] = p[0];
273016Swollman	_rand48_seed[1] = p[1];
283016Swollman	_rand48_seed[2] = p[2];
293016Swollman	_rand48_mult[0] = p[3];
303016Swollman	_rand48_mult[1] = p[4];
313016Swollman	_rand48_mult[2] = p[5];
323016Swollman	_rand48_add = p[6];
333016Swollman}
34