IPseudoRandomizer
Inherits: IRandomizer
Author: fx(hash)
Randomizer for generating psuedorandom seeds for newly minted tokens
Functions
generateSeed
Generates random seed for token using entropy
function generateSeed(uint256 _tokenId) external view returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
_tokenId | uint256 | ID of the token |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32 | Hash of the seed |
requestRandomness
Requests random seed for a given token
function requestRandomness(uint256 _tokenId) external;
Parameters
Name | Type | Description |
---|---|---|
_tokenId | uint256 | ID of the token |