diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-04-23 09:16:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-04-23 09:16:42 -0400 |
commit | 241e6b093730106978ceef5b500c7049b9846084 (patch) | |
tree | 2f3ada40c5da0dc23530a223f34cc5a624556d5a /src/or/entrynodes.c | |
parent | 647b7d37c2b3de4a837d0a4bf810c0132624c15d (diff) | |
download | tor-241e6b093730106978ceef5b500c7049b9846084.tar.gz tor-241e6b093730106978ceef5b500c7049b9846084.zip |
Fix some conversion problems
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 9f07d5ad69..ebf675166b 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -441,7 +441,7 @@ add_an_entry_guard(const node_t *chosen, int reset_status, int prepend, * precise timestamp in the state file about when we first picked * this guard. For details, see the Jan 2010 or-dev thread. */ time_t now = time(NULL); - entry->chosen_on_date = crypto_rand_int_range(now - 3600*24*30, now); + entry->chosen_on_date = crypto_rand_time_range(now - 3600*24*30, now); entry->chosen_by_version = tor_strdup(VERSION); /* Are we picking this guard because all of our current guards are @@ -1441,7 +1441,7 @@ entry_guards_parse_state(or_state_t *state, int set, char **msg) } else { if (state_version) { time_t now = time(NULL); - e->chosen_on_date = crypto_rand_int_range(now - 3600*24*30, now); + e->chosen_on_date = crypto_rand_time_range(now - 3600*24*30, now); e->chosen_by_version = tor_strdup(state_version); } } |