summaryrefslogtreecommitdiffstats
path: root/src/sync-alarm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync-alarm.c')
-rw-r--r--src/sync-alarm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync-alarm.c b/src/sync-alarm.c
index 6ee306e..9ab9d96 100644
--- a/src/sync-alarm.c
+++ b/src/sync-alarm.c
@@ -38,7 +38,7 @@ static void refresher(struct alarm_list *a, void *data)
init_alarm(a, u, refresher);
set_alarm_expiration(a,
random() % CONFIG(refresh) + 1,
- random() % 999999 + 1);
+ ((random() % 5 + 1) * 200000) - 1);
add_alarm(a);
@@ -54,7 +54,7 @@ static void cache_alarm_add(struct us_conntrack *u, void *data)
init_alarm(alarm, u, refresher);
set_alarm_expiration(alarm,
random() % CONFIG(refresh) + 1,
- random() % 999999 + 1);
+ ((random() % 5 + 1) * 200000) - 1);
add_alarm(alarm);
}