Source file src/crypto/rand/internal/seccomp/seccomp_unsupported.go

     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  
     5  //go:build !linux || !cgo
     6  
     7  package seccomp
     8  
     9  import "errors"
    10  
    11  func DisableGetrandom() error {
    12  	return errors.New("disabling getrandom is not supported on this system")
    13  }
    14  

View as plain text