From 059ab337c8b9d5498dba57e9bf4697a58b3dee1a Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Fri, 28 Jul 2017 13:52:34 -0700 Subject: [PATCH] Seed random number generator --- src/backoff.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backoff.h b/src/backoff.h index cbf1c90..e26f417 100644 --- a/src/backoff.h +++ b/src/backoff.h @@ -3,6 +3,7 @@ #include #include #include +#include struct Backoff { int64_t minAmount; @@ -19,6 +20,7 @@ struct Backoff { , maxAmount(max) , current(min) , fails(0) + , randGenerator(time(0)) { }