No description provided.
Add zero check to randrange() (@tecnovert) #15359
pull kewde wants to merge 1 commits into bitcoin:master from kewde:patch-2 changing 1 files +9 −5-
kewde commented at 8:53 PM on February 6, 2019: contributor
-
Prevent undefined behavior of randrange() (@tecnovert) a7ecb244b7
- kewde renamed this:
Prevent undefined behavior of randrange() (@tecnovert)
Add zero check to randrange() (@tecnovert)
on Feb 6, 2019 -
gmaxwell commented at 8:56 PM on February 6, 2019: contributor
Returning 0 in that case is wrong: 0 is outside of the requested range, just less obviously than an absurdly high value.
- kewde closed this on Feb 6, 2019
- kewde deleted the branch on Feb 6, 2019
- DrahtBot locked this on Dec 16, 2021