From b98ac8a2f01f526ae1339ed9ddc2c0d980b92f60 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 13 Dec 2016 12:01:14 +1100 Subject: [PATCH] Change starting session id on each startup. --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 2dc811d0..3ae9efb5 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -7812,6 +7812,7 @@ void *stratifier(void *arg) randomiser = time(NULL); sdata->enonce1_64 = htole64(randomiser); + sdata->session_id = randomiser; /* Set the initial id to time as high bits so as to not send the same * id on restarts */ randomiser <<= 32;