14 lines
164 B
Go
14 lines
164 B
Go
|
package bls12381
|
||
|
|
||
|
import (
|
||
|
"crypto/rand"
|
||
|
"math/big"
|
||
|
)
|
||
|
|
||
|
var fuz int = 10
|
||
|
|
||
|
func randScalar(max *big.Int) *big.Int {
|
||
|
a, _ := rand.Int(rand.Reader, max)
|
||
|
return a
|
||
|
}
|