]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compat/arc4random() to not stir on every evocation.
authorRoy Marples <roy@marples.name>
Thu, 11 Feb 2016 15:17:28 +0000 (15:17 +0000)
committerRoy Marples <roy@marples.name>
Thu, 11 Feb 2016 15:17:28 +0000 (15:17 +0000)
Fixes [24bee9333b]

compat/arc4random.c

index 2634fd76c98aee20c43d0701d5b0e368e62fa2d5..0a2f65a3505c6055e37cc93617ae2694991b4538 100644 (file)
@@ -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