core/vm/runtime: don't overwrite user-provided Random

This commit is contained in:
phrwlk 2026-01-01 22:30:53 +02:00 committed by GitHub
parent b635e0632c
commit f271a2933a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,9 @@ func setDefaults(cfg *Config) {
if cfg.BlobBaseFee == nil {
cfg.BlobBaseFee = big.NewInt(params.BlobTxMinBlobGasprice)
}
cfg.Random = &(common.Hash{})
if cfg.Random == nil {
cfg.Random = new(common.Hash)
}
}
// Execute executes the code using the input as call data during the execution.