--- 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 @@ -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) { @@ -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
- [hackers] [sbase][PATCH] Add implementation o... Elie Le Vaillant
- [hackers] [sbase][PATCH] libutil: add ra... Elie Le Vaillant
- [hackers] [sbase][PATCH] shuf: use l... Elie Le Vaillant
- [hackers] [sbase][PATCH] libutil/ran... Elie Le Vaillant
- [hackers] [sbase][PATCH] shuf: u... Elie Le Vaillant
- [hackers] [sbase][PATCH] cron: u... Elie Le Vaillant
- [hackers] [sbase][PATCH] lib... Elie Le Vaillant
- [hackers] [sbase][PATCH... Elie Le Vaillant
- [hackers] [sbase][P... Elie Le Vaillant
- Re: [hackers] [sbase][P... Steve Ward
- Re: [hackers] [sbase][P... NRK
- [hackers] [sbase][PATCH] cro... Elie Le Vaillant
- Re: [hackers] [sbase][P... Roberto E . Vargas Caballero
- Re: [hackers] [sbas... Elie Le Vaillant
- Re: [hackers] [... Roberto E . Vargas Caballero
- [hackers] [sbase][PATCH] Add implementat... Elie Le Vaillant