Skip to content

Commit 0d4c1c4

Browse files
committed
improve package grand
1 parent 4d32733 commit 0d4c1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/grand/grand_buffer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import (
1212

1313
const (
1414
// Buffer size for uint32 random number.
15-
gBUFFER_SIZE = 10000
15+
bufferChanSize = 10000
1616
)
1717

1818
var (
1919
// bufferChan is the buffer for random bytes,
2020
// every item storing 4 bytes.
21-
bufferChan = make(chan []byte, gBUFFER_SIZE)
21+
bufferChan = make(chan []byte, bufferChanSize)
2222
)
2323

2424
func init() {

0 commit comments

Comments
 (0)