Closed allexoll closed 3 years ago
Thank you, @allexoll, good catch!
One note: I think the method documentation is somewhat wrong. Under "Panics", it states <= 2^17
, which doesn't match the new implementation, or the rest of the method's documentation. It should probably be < 2^17
.
I'm merging this PR now, since it's a strict improvement (the documentation is not more wrong than it was before), and am going to open an issue to track the documentation problem. A follow-up PR that fixes the documentation issue would be very welcome!
^
was probably intended as "power" but is XOR in this context, limiting delay to a maximum of 2 XOR 17, or ..=19