// SPDX-License-Identifier: MIT pragma solidity >=0.7.6 <0.9; /** * Random number V2 long term support interface. */ interface RandomNumberV2Interface { /** * Returns the current random number, its timestamp and the flag indicating if it is secure. * @return _randomNumber The current random number. * @return _isSecureRandom The flag indicating if the random number is secure. * @return _randomTimestamp The timestamp of the random number. */ function getRandomNumber() external view returns ( uint256 _randomNumber, bool _isSecureRandom, uint256 _randomTimestamp ); /** * Returns the historical random number for a given _votingRoundId, * its timestamp and the flag indicating if it is secure. * If no finalization in the _votingRoundId, the function reverts. * @param _votingRoundId The voting round id. * @return _randomNumber The current random number. * @return _isSecureRandom The flag indicating if the random number is secure. * @return _randomTimestamp The timestamp of the random number. */ function getRandomNumberHistorical( uint256 _votingRoundId ) external view returns ( uint256 _randomNumber, bool _isSecureRandom, uint256 _randomTimestamp ); }