diff --git a/pkg/snapshot/service_test.go b/pkg/snapshot/service_test.go index 5609431..ac6566c 100644 --- a/pkg/snapshot/service_test.go +++ b/pkg/snapshot/service_test.go @@ -19,6 +19,8 @@ import ( ) var ( + rng = rand.New(rand.NewSource(time.Now().UnixNano())) + // Note: block 1 doesn't have storage nodes. TODO: add fixtures with storage nodes // chainAblock1StateKeys = sliceToSet(fixture.ChainA_Block1_StateNodeLeafKeys) chainAblock1IpldCids = sliceToSet(fixture.ChainA_Block1_IpldCids) @@ -31,10 +33,6 @@ type selectiveData struct { StorageNodes map[string]map[string]*models.StorageNodeModel } -func init() { - rand.Seed(time.Now().UnixNano()) -} - func testConfig(ethdbpath, ancientdbpath string) *Config { return &Config{ Eth: &EthDBConfig{