randombit / botan

Cryptography Toolkit
https://botan.randombit.net
BSD 2-Clause "Simplified" License
2.59k stars 569 forks source link

Fix random test failure introduced by #4385 #4416

Closed randombit closed 3 weeks ago

randombit commented 3 weeks ago

Fixes #4415

coveralls commented 3 weeks ago

Coverage Status

coverage: 91.078% (+0.001%) from 91.077% when pulling 914e969112c705754a8891054b650e41a3aa3353 on jack/fix-4415 into dc326edf1204ec0875f807ffc475717d4c96410f on master.

randombit commented 3 weeks ago

Another simple response would be if we find ourselves with x == 0 return a completely random scalar instead.