Thanks Steve Ward --- libutil/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libutil/random.c b/libutil/random.c
index 6b795a9..d5214ae 100644
--- a/libutil/random.c
+++ b/libutil/random.c
@@ -67,7 +67,7 @@ rng32_seed_r(uint64_t *state)
{
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
- *state = (intptr_t)&printf ^ time(NULL) ^ (ts.tv_nsec * 0xAC5533CD);
+ *state = (intptr_t)&printf ^ ts.tv_sec ^ (ts.tv_nsec * 0xAC5533CD);
}
void
--
2.44.0
