---
cron.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cron.c b/cron.c
index 126ebf1..e95c661 100644
--- a/cron.c
+++ b/cron.c
_AT_@ -294,7 +294,7 @@ parserange(char *str, long low, long high, struct range *r)
if (random) {
/* random replaces low in matchentry() */
r->repeat = r->low; /* so that it doesn't repeat */
- r->low = random_uniform(r->high - r->low+1) + r->low;
+ r->low = rng32_bounded(r->high - r->low+1) + r->low;
}
if (r->low < low || r->low > high || r->high < low || r->high > high || r->repeat < low || r->repeat > high) {
_AT_@ -525,7 +525,7 @@ main(int argc, char *argv[])
sigaction(SIGHUP, &sa, NULL);
sigaction(SIGTERM, &sa, NULL);
- random_seed();
+ rng32_seed();
loadentries();
--
2.44.0
Received on Sun Mar 03 2024 - 16:14:34 CET
This archive was generated by hypermail 2.3.0 : Sun Mar 03 2024 - 16:24:35 CET