Browse Source

wireguard-mod : remove excessive wait_for_random_bytes

pull/31/head
bolvan 6 years ago
parent
commit
2f4f603356
  1. 1
      wireguard/010-wg-mod.patch

1
wireguard/010-wg-mod.patch

@ -87,6 +87,7 @@ Index: WireGuard-0.0.20190123/src/noise.c
+ gtrash = gtrash*1103515243 + 12345; + gtrash = gtrash*1103515243 + 12345;
+ else + else
+ // first value is true random + // first value is true random
+ get_random_bytes_wait(&gtrash, sizeof(gtrash));
+ } + }
+ return gtrash; + return gtrash;
+} +}

Loading…
Cancel
Save