package sysrand

Import Path
	crypto/internal/sysrand (on go.dev)

Dependency Relation
	imports 10 packages, and imported by 2 packages

Involved Source Files Package rand provides cryptographically secure random bytes from the operating system. rand_getrandom.go
Package-Level Functions (only one)
Read fills b with cryptographically secure random bytes from the operating system. It always fills b entirely and crashes the program irrecoverably if an error is encountered. The operating system APIs are documented to never return an error on all but legacy Linux systems. Note that Read is not affected by [testing/cryptotest.SetGlobalRand], and it should not be used directly by algorithm implementations.