EXTRA_DIST = pspp.man
-MAINTAINERCLEANFILES = Makefile.in README.html pspp.info pspp.info-*
+CLEANFILES = pspp.info pspp.info-*
+MAINTAINERCLEANFILES=Makefile.in README.html
+
+Tue Feb 3 18:56:45 WST 2004 John Darrington <john@darrington.wattle.id.au>
+
+ * random.c (rng_create): Fixed seeding so that it gets reseeded after
+ SET seed=xx has been called.
+
Mon Jan 19 14:08:09 2004 Ben Pfaff <blp@gnu.org>
* random.c (rng_get_double): Fix always-returning-zero bug in my
static time_t t=0;
rng = xmalloc (sizeof *rng);
- if (t == 0 || set_seed == NOT_LONG)
+ if (t == 0 || set_seed_used)
{
if (set_seed == NOT_LONG)
time (&t);
else
t = set_seed;
+ set_seed_used=0;
}
else
t++;
int set_scompression;
int set_screen;
long set_seed;
+int set_seed_used;
int set_testing_mode;
int set_undefined;
int set_viewlength;
set_seed = tokval;
lex_get ();
}
+ set_seed_used=1;
return 1;
}