tor/changes/bug27728
Nick Mathewson ea5792f333 Make crypto_strongest_rand() non-mockable
Instead, have it call a mockable function.  We don't want
crypto_strongest_rand() to be mockable, since doing so creates a
type error when we call it from ed25519-donna, which we do not build
in a test mode.

Fixes bug 27728; bugfix on 0.3.5.1-alpha
2018-09-18 12:40:18 -04:00

8 lines
403 B
Plaintext

o Minor bugfixes (compilation):
- Compile the ed25519-donna code with a correct declaration of
crypto_strongest_rand(). Previously, we build it with one type,
but link it against another in the unit tests, which caused
compilation failures with LTO enabled, and which could have
caused other undefined behavior in the tests. Fixes bug 27728;
bugfix on 0.3.5.1-alpha.