aboutsummaryrefslogtreecommitdiffstats
path: root/ffi/go/bls/bls.go
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/go/bls/bls.go')
-rw-r--r--ffi/go/bls/bls.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffi/go/bls/bls.go b/ffi/go/bls/bls.go
index 2374d2e..2e57460 100644
--- a/ffi/go/bls/bls.go
+++ b/ffi/go/bls/bls.go
@@ -390,7 +390,7 @@ func (sign *Sign) VerifyAggregateHashes(pubVec []PublicKey, hash [][]byte) bool
///
-var s_randReader *io.Reader
+var s_randReader io.Reader
func createSlice(buf *C.char, n C.uint) []byte {
size := int(n)
@@ -401,7 +401,7 @@ func createSlice(buf *C.char, n C.uint) []byte {
//export wrapReadRandGo
func wrapReadRandGo(buf *C.char, n C.uint) C.uint {
slice := createSlice(buf, n)
- ret, err := (*s_randReader).Read(slice)
+ ret, err := s_randReader.Read(slice)
if ret == int(n) && err == nil {
return n
}
@@ -409,7 +409,7 @@ func wrapReadRandGo(buf *C.char, n C.uint) C.uint {
}
// SetRandFunc --
-func SetRandFunc(randReader *io.Reader) {
+func SetRandFunc(randReader io.Reader) {
s_randReader = randReader
if randReader != nil {
C.blsSetRandFunc(nil, C.ReadRandFunc(unsafe.Pointer(C.wrapReadRandCgo)))