diff options
| author | 2019-06-22 20:15:09 +0000 | |
|---|---|---|
| committer | 2019-06-22 20:15:09 +0000 | |
| commit | 50b584e51139d72fef53ce11c0da9990dcd89799 (patch) | |
| tree | ffbd71d29763c016e17fbd5e5fa32caf11a59cf2 /gnu/llvm/lib/Transforms | |
| parent | Swap (opcount >= opleft || opcount == -1) to (opcount == -1 || opcount >= opleft) like (diff) | |
| download | wireguard-openbsd-50b584e51139d72fef53ce11c0da9990dcd89799.tar.xz wireguard-openbsd-50b584e51139d72fef53ce11c0da9990dcd89799.zip | |
Make computation of re-challenge timeout more obvious
Instead of masking the difference between lower and upper bound to yield
a random summand that fits, instruct the API to limit their result
accordingly. 0x01fe = 510 = 810 - 300.
arc4random_uniform(upper_bound) returns `upper_bound - 1' as maximum, so
add one to make 810 a possible value for `i'.
OK deraadt
Diffstat (limited to 'gnu/llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
