aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/dsa_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/numbertheory/dsa_gen.cpp')
-rw-r--r--src/lib/math/numbertheory/dsa_gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/dsa_gen.cpp b/src/lib/math/numbertheory/dsa_gen.cpp
index e28873550..bd3c0e4a1 100644
--- a/src/lib/math/numbertheory/dsa_gen.cpp
+++ b/src/lib/math/numbertheory/dsa_gen.cpp
@@ -120,7 +120,7 @@ std::vector<byte> generate_dsa_primes(RandomNumberGenerator& rng,
while(true)
{
std::vector<byte> seed(qbits / 8);
- rng.randomize(&seed[0], seed.size());
+ rng.randomize(seed.data(), seed.size());
if(generate_dsa_primes(rng, p, q, pbits, qbits, seed))
return seed;