plugeth-utils/restricted/crypto/bls12381/bls12_381_test.go

14 lines
160 B
Go
Raw Normal View History

2021-09-13 20:12:49 +00:00
package bls12381
import (
"crypto/rand"
"math/big"
)
var fuz = 10
func randScalar(max *big.Int) *big.Int {
a, _ := rand.Int(rand.Reader, max)
return a
}