mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Update difflayer.go
This commit is contained in:
parent
d8f9801305
commit
b333fa81b8
1 changed files with 3 additions and 2 deletions
|
|
@ -80,8 +80,9 @@ var (
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// Init the bloom offsets in the range [0:24] (requires 8 bytes)
|
// Init the bloom offsets in the range [0:24] (requires 8 bytes)
|
||||||
bloomAccountHasherOffset = rand.Intn(25)
|
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||||
bloomStorageHasherOffset = rand.Intn(25)
|
bloomAccountHasherOffset = rng.Intn(25)
|
||||||
|
bloomStorageHasherOffset = rng.Intn(25)
|
||||||
}
|
}
|
||||||
|
|
||||||
// diffLayer represents a collection of modifications made to a state snapshot
|
// diffLayer represents a collection of modifications made to a state snapshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue