diff --git a/src/common/crypto.c b/src/common/crypto.c
index f0d4fbbf21..f338114d76 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -2506,7 +2506,7 @@ static const char base64_encode_table[64] = {
* bytes. Return the number of bytes written on success; -1 if
* destlen is too short, or other failure.
*
- * If flags&BASE64_ENCODE_MULTILINE is true, return encoded
+ * If flags&BASE64_ENCODE_MULTILINE is true, return encoded
* output in multiline format (64 character, `\n' terminated lines).
*/
int
diff --git a/src/or/main.c b/src/or/main.c
index 22b006a3c8..3fb7de6f6c 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1623,7 +1623,8 @@ run_scheduled_events(time_t now)
time_to.check_for_correct_dns < now &&
! router_my_exit_policy_is_reject_star()) {
if (!time_to.check_for_correct_dns) {
- time_to.check_for_correct_dns = crypto_rand_time_range(now, now + 120) + 60;
+ time_to.check_for_correct_dns =
+ crypto_rand_time_range(now + 60, now + 180);
} else {
dns_launch_correctness_checks();
time_to.check_for_correct_dns = now + 12*3600 +