Re:The Effectiveness of Publicly Shaming Bad Security
by count on Thursday September 13, 2018 @10:23PM
(#17984287)
Randomness inserted like that can be filtered out statistically with a decent sample set - it's a gaussian distribution, so you'll still see the saying timing differences.
This is why things have to be constant time, rather than random return time.
The random sleep is to prevent obtaining enough samples and provide reasonable noise at this small sample size. Given enough samples until the end of time, patterns can be obtained. This is not breaking TLS here, this is login, and seconds of sleep vs microseconds makes a difference.