MCPcopy
hub / github.com/hashicorp/packer / TestRandom

Function TestRandom

main_test.go:68–72  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestRandom(t *testing.T) {
69 if rand.Intn(9999999) == 8498210 {
70 t.Fatal("math.rand is not seeded properly")
71 }
72}

Callers

nothing calls this directly

Calls 1

FatalMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…