From: Roy Marples Date: Thu, 11 Feb 2016 15:17:28 +0000 (+0000) Subject: Fix compat/arc4random() to not stir on every evocation. X-Git-Tag: v6.10.2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44c9cff4672b5f6c595e6c39b30bb551ab5575fa;p=thirdparty%2Fdhcpcd.git Fix compat/arc4random() to not stir on every evocation. Fixes [24bee9333b] --- diff --git a/compat/arc4random.c b/compat/arc4random.c index 2634fd76..0a2f65a3 100644 --- a/compat/arc4random.c +++ b/compat/arc4random.c @@ -138,7 +138,7 @@ arc4_stir_if_needed(struct arc4_stream *as) pid_t pid; pid = getpid(); - if (as->count <= sizeof(uint32_t) || !as->stir_pid != pid) { + if (as->count <= sizeof(uint32_t) || as->stir_pid != pid) { as->stir_pid = pid; arc4_stir(as); } else