mirror of https://github.com/hashicorp/packer
Alternative fix for #2641: make random script name actually random
parent
45829c30e5
commit
e5a713ff01
@ -0,0 +1,12 @@
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPluginServerRandom(t *testing.T) {
|
||||
if rand.Intn(9999999) == 8498210 {
|
||||
t.Fatal("math.rand is not seeded properly")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue