mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-10 05:09:03 +00:00
* remove uneeded convertion type * remove redundant type in composite literal * omit explicit type where implicit * remove unused redundant parenthesis * remove redundant import alias duktape
13 lines
160 B
Go
13 lines
160 B
Go
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
|
|
}
|