Skip to content

Commit

Permalink
use PrngClassPointerConst in ecnist file
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Aug 1, 2024
1 parent e0de945 commit 8d3992b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libp2p/crypto/ecnist.nim
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ proc random*(
var ecimp = ecGetDefault()
var res = new EcPrivateKey
if ecKeygen(
addr rng.vtable, ecimp, addr res.key, addr res.buffer[0], safeConvert[cint](kind)
PrngClassPointerConst(addr rng.vtable),
ecimp,
addr res.key,
addr res.buffer[0],
safeConvert[cint](kind),
) == 0:
err(EcKeyGenError)
else:
Expand Down

0 comments on commit 8d3992b

Please sign in to comment.