package seccomp
import "crypto/internal/sysrand/internal/seccomp"
Index ¶
Functions ¶
func DisableGetrandom ¶
func DisableGetrandom() error
DisableGetrandom makes future calls to getrandom(2) fail with ENOSYS. It applies only to the current thread and to any programs executed from it. Callers should use runtime.LockOSThread in a dedicated goroutine.
Source Files ¶
- Version
- v1.26.0-rc.2
- Published
- Jan 8, 2026
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 13 seconds ago –
Tools for package owners.