|File: [cvs.NetBSD.org] / src / lib / libc / stdlib / srand48.c (download)
Revision 1.5, Sun Nov 15 17:13:52 1998 UTC (21 years, 2 months ago) by christos
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.4: +2 -2
/* $NetBSD: srand48.c,v 1.5 1998/11/15 17:13:52 christos Exp $ */
* Copyright (c) 1993 Martin Birgmeier
* All rights reserved.
* You may redistribute unmodified or modified versions of this source
* code provided that the above copyright notice and this and the
* following conditions are retained.
* This software is provided ``as is'', and comes with no warranties
* of any kind. I shall in no event be liable for anything that happens
* to anyone/anything when using this software.
__rand48_seed = RAND48_SEED_0;
__rand48_seed = (unsigned short) seed;
__rand48_seed = (unsigned short) ((unsigned long)seed >> 16);
__rand48_mult = RAND48_MULT_0;
__rand48_mult = RAND48_MULT_1;
__rand48_mult = RAND48_MULT_2;
__rand48_add = RAND48_ADD;