From d54817c33cff9fe401f206f01b9263f7b61059dc Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 19 Jun 2024 13:55:58 +0800 Subject: [PATCH] deprecated --- pkg/snapshot/service_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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{