mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
263 B
Solidity
15 lines
263 B
Solidity
|
contract C {
|
||
|
function f() public view returns (uint256) {
|
||
|
return block.prevrandao;
|
||
|
}
|
||
|
|
||
|
function g() public view returns (uint256 ret) {
|
||
|
assembly {
|
||
|
ret := prevrandao()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// EVMVersion: >=paris
|
||
|
// ----
|