Skip to content

Commit

Permalink
Update generator.go
Browse files Browse the repository at this point in the history
feat: use read buffer to reduce read syscall
  • Loading branch information
zhuangzeqiang authored Oct 20, 2020
1 parent f73ba42 commit 9ac592c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func newRFC4122Generator() Generator {
return &rfc4122Generator{
epochFunc: time.Now,
hwAddrFunc: defaultHWAddrFunc,
rand: rand.Reader,
rand: newBytesBuffer(4096, rand.Reader),
}
}

Expand Down

0 comments on commit 9ac592c

Please sign in to comment.