BSD 4_1_snap release
[unix-history] / usr / src / lib / libpc / SEED.c
index 7bf1878..2c21bae 100644 (file)
@@ -1,16 +1,16 @@
 /* Copyright (c) 1979 Regents of the University of California */
 
 /* Copyright (c) 1979 Regents of the University of California */
 
-static char sccsid[] = "@(#)SEED.c 1.1 10/29/80";
+static char sccsid[] = "@(#)SEED.c 1.5 3/7/81";
 
 
-SEED(value)
+#include "h00vars.h"
 
 
-       long    value;
+long
+SEED(value)
+       long value;
 {
 {
-       static long     seed;
-       long            tmp;
+       long tmp;
 
 
-       srand(value);
-       tmp = seed;
-       seed = value;
+       tmp = _seed;
+       _seed = value;
        return tmp;
 }
        return tmp;
 }