diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-08-17 16:32:33 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2020-08-18 08:47:48 +0000 |
commit | 4149493443f09c14d9f0fad7030704ed57149b55 (patch) | |
tree | caef4942a2c4e6abf4dc11f57b79501e07bdc276 /src/runtime/runtime2.go | |
parent | 4b94e881611890c6d6cbda6f542a94ab08de17e0 (diff) | |
download | go-4149493443f09c14d9f0fad7030704ed57149b55.tar.gz go-4149493443f09c14d9f0fad7030704ed57149b55.zip |
runtime: move startupRandomData declaration to os_linux.go
startupRandomData is only used in sysauxv and getRandomData on linux,
thus move it closer to where it is used. Also adjust its godoc comment.
Change-Id: Ice51d579ec33436adbfdf247caf4ba00bae865e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/248761
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r-- | src/runtime/runtime2.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 0bddcaa789..959878400d 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -845,10 +845,6 @@ type forcegcstate struct { idle uint32 } -// startup_random_data holds random bytes initialized at startup. These come from -// the ELF AT_RANDOM auxiliary vector (vdso_linux_amd64.go or os_linux_386.go). -var startupRandomData []byte - // extendRandom extends the random numbers in r[:n] to the whole slice r. // Treats n<0 as n==0. func extendRandom(r []byte, n int) { |