BSD 4_3 release
[unix-history] / usr / src / lib / libc / gen / random.c
index 101aafd..d8cdd9e 100644 (file)
@@ -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       <stdio.h>
 
 
 #include       <stdio.h>
 
@@ -142,7 +148,7 @@ static  long                *rptr                   = &randtbl[ 1 ];
  * the front and rear pointers have wrapped.
  */
 
  * 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;
 
 static  int            rand_type               = TYPE_3;
 static  int            rand_deg                = DEG_3;