mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-26 10:55:41 +00:00
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…
x
Reference in New Issue
Block a user