vgetrandom_linux.go 345 B

12345678910111213
  1. // Copyright 2024 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build linux && go1.24
  5. package unix
  6. import _ "unsafe"
  7. //go:linkname vgetrandom runtime.vgetrandom
  8. //go:noescape
  9. func vgetrandom(p []byte, flags uint32) (ret int, supported bool)