diff options
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r-- | src/tests/unit_ecc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp index 14236d8ae..459d6a594 100644 --- a/src/tests/unit_ecc.cpp +++ b/src/tests/unit_ecc.cpp @@ -52,7 +52,7 @@ Botan::BigInt test_integer(Botan::RandomNumberGenerator& rng, size_t bits, BigIn return .01; }; - bool active = rng.next_byte() % 2; + bool active = (rng.next_byte() > 128) ? true : false; for(size_t i = 0; i != bits; ++i) { x <<= 1; |