Skip to content

Commit

Permalink
unix: mark the linknamed vgetrandom as noescape
Browse files Browse the repository at this point in the history
Also see discussion in CL 616735
  • Loading branch information
mateusz834 committed Sep 30, 2024
1 parent cbf0eb6 commit 10e6a30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/vgetrandom_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ package unix
import _ "unsafe"

//go:linkname vgetrandom runtime.vgetrandom
//go:noescape
func vgetrandom(p []byte, flags uint32) (ret int, supported bool)

0 comments on commit 10e6a30

Please sign in to comment.