mirror of https://github.com/hashicorp/packer
Merge pull request #2822 from markpeek/markpeek-alt-rand
Initialize the random seeding in main and the RPC server (for plugins)pull/2824/head
commit
f401e765df
@ -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