CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2019/06/22 14:15:10

Modified files:
        sys/net        : if_spppsubr.c 

Log message:
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

Reply via email to