fix random_keys crash
This commit is contained in:
parent
845671bf0a
commit
9ee04efca4
|
@ -11,7 +11,7 @@ proc getRng*(): ref BrHmacDrbgContext {.gcsafe.} =
|
|||
theRNG
|
||||
|
||||
proc randomPrivateKey*(): PrivateKey =
|
||||
random(PrivateKey, theRNG[])
|
||||
random(PrivateKey, getRng()[])
|
||||
|
||||
proc randomKeyPair*(): KeyPair =
|
||||
random(KeyPair, theRNG[])
|
||||
random(KeyPair, getRng()[])
|
||||
|
|
Loading…
Reference in New Issue