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
- Published
- Feb 10, 2026
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 minutes ago –
Tools for package owners.