aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index 90d966a39..65187a428 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -286,7 +286,7 @@ Test::Result test_point_transformation ()
// get a valid point
Botan::EC_Group dom_pars(Botan::OID("1.3.132.0.8"));
- Botan::PointGFp p = dom_pars.get_base_point() * Test::rng().next_byte();
+ Botan::PointGFp p = dom_pars.get_base_point() * Test::rng().next_nonzero_byte();
// get a copy
Botan::PointGFp q = p;