golang/go

runtime: use .openbsd.randomdata for startupRand

Open

#69,781 opened on Oct 4, 2024

View on GitHub
 (6 comments) (1 reaction) (1 assignee)Go (133,883 stars) (19,008 forks)batch import
NeedsFixOS-OpenBSDcompiler/runtimehelp wanted

Description

OpenBSD has its version of AT_RANDOM, the .openbsd.randomdata ELF section documented at SPECS.randomdata. We should use that instead of reading from /dev/urandom.

Contributor guide