mirror of https://github.com/golang/go.git
internal/syscall/unix: fix gofmt
Change-Id: I24203c4e52bf4d55a6391d10fb4d30771c2674b6 Reviewed-on: https://go-review.googlesource.com/c/go/+/518637 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
b3c9db8934
commit
dd307f193b
|
|
@ -25,9 +25,9 @@ func GetEntropy(p []byte) error {
|
|||
uintptr(unsafe.Pointer(&mib[0])),
|
||||
uintptr(len(mib)),
|
||||
uintptr(unsafe.Pointer(&p[0])), // olddata
|
||||
uintptr(unsafe.Pointer(&n)), // &oldlen
|
||||
uintptr(unsafe.Pointer(nil)), // newdata
|
||||
0) // newlen
|
||||
uintptr(unsafe.Pointer(&n)), // &oldlen
|
||||
uintptr(unsafe.Pointer(nil)), // newdata
|
||||
0) // newlen
|
||||
if errno != 0 {
|
||||
return syscall.Errno(errno)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue