X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/0f4556f12c8f75078501c9d1338ae7648a97f975..95f51977ddc18faa2e212f30c00a39540b39f325:/usr/src/lib/libc/gen/random.c diff --git a/usr/src/lib/libc/gen/random.c b/usr/src/lib/libc/gen/random.c index 101aafd6a1..d8cdd9efb4 100644 --- a/usr/src/lib/libc/gen/random.c +++ b/usr/src/lib/libc/gen/random.c @@ -1,6 +1,12 @@ -#ifndef lint -static char sccsid[] = "@(#)random.c 4.2 (Berkeley) 83/01/02"; -#endif +/* + * Copyright (c) 1983 Regents of the University of California. + * All rights reserved. The Berkeley software License Agreement + * specifies the terms and conditions for redistribution. + */ + +#if defined(LIBC_SCCS) && !defined(lint) +static char sccsid[] = "@(#)random.c 5.2 (Berkeley) 3/9/86"; +#endif LIBC_SCCS and not lint #include @@ -142,7 +148,7 @@ static long *rptr = &randtbl[ 1 ]; * the front and rear pointers have wrapped. */ -static long *state = &randtbl[ -1 ]; +static long *state = &randtbl[ 1 ]; static int rand_type = TYPE_3; static int rand_deg = DEG_3;