Skip to content

Commit 513fc9a

Browse files
committed
[psetv2] Hotfix: optional rng func arg
1 parent 397499f commit 513fc9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

confidential/confidential.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ func CreateBlindValueProof(
434434
ctx, _ := secp256k1.ContextCreate(secp256k1.ContextBoth)
435435
defer secp256k1.ContextDestroy(ctx)
436436

437+
if rng == nil {
438+
rng = generateRandomNumber
439+
}
437440
r, err := rng()
438441
if err != nil {
439442
return nil, err

0 commit comments

Comments
 (0)