chancehudson / scalarff

Simple scalars in prime fields
https://docs.rs/scalarff
0 stars 0 forks source link

Discard unused bits in random numbers #9

Open chancehudson opened 1 day ago

chancehudson commented 1 day ago

When sampling random numbers in a field element discard the bits above the modulus instead of doing modular reduction. This should get rid of modulo bias.