MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / env

Function env

crates/runner-shared/src/runtime_env/go.rs:7–10  ·  view source on GitHub ↗

Go env: - `GODEBUG=randautoseed=0`: deterministic global `math/rand` in every mode.

()

Source from the content-addressed store, hash-verified

5/// Go env:
6/// - `GODEBUG=randautoseed=0`: deterministic global `math/rand` in every mode.
7pub(super) fn env() -> Vec<(&'static str, String)> {
8 let user_godebug = std::env::var(GODEBUG).ok();
9 vec![(GODEBUG, godebug(user_godebug.as_deref()))]
10}
11
12/// Prepends our settings to the user's `GODEBUG`. Go uses the last occurrence
13/// of a setting, so an explicit `randautoseed` from the user still wins.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected