mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
ef84da8481
* remove uneeded convertion type * remove redundant type in composite literal * omit explicit type where implicit * remove unused redundant parenthesis * remove redundant import alias duktape
14 lines
160 B
Go
14 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
|
|
}
|