diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 44d3e81a9c..62d5404d91 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -475,7 +475,7 @@ func opDifficulty(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { } func opRandom(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) { - v := new(uint256.Int).SetBytes(evm.Context.Random.Bytes()) + v := new(uint256.Int).SetBytes32(evm.Context.Random.Bytes()) scope.Stack.push(v) return nil, nil }