github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/crypto/bls12381/bls12_381_test.go (about)

     1  package bls12381
     2  
     3  import (
     4  	"crypto/rand"
     5  	"math/big"
     6  )
     7  
     8  var fuz int = 10
     9  
    10  func randScalar(max *big.Int) *big.Int {
    11  	a, _ := rand.Int(rand.Reader, max)
    12  	return a
    13  }