golang/go

runtime: use .openbsd.randomdata for startupRand

Aperta

#69.781 aperta il 4 ott 2024

 (6 commenti) (1 reazione) (1 assegnatario)Go (19.008 fork)batch import
NeedsFixOS-OpenBSDcompiler/runtimehelp wanted

Metriche repository

Star
 (133.883 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor