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 (19,008 forks)batch import
NeedsFixOS-OpenBSDcompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

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