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 Jul 18, 2024
1 parent 1bc4fde commit 6ce269f
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 6ce269f

Please sign in to comment.