Hi all ,
I need your help.
I need to generate random integer in solidity by taking the keccak hash of last 8 digits of ethereum wallet address and other 2 parameters. How should I mention in the solidity code. Could anyone please guide me in that

Nov 16, 2020, 12:32 PM
This is often done by casting a combination of values into uint. Some examples are here: https://ethereum.stackexchange.com/questions/62375/best-practices-for-generating-a-random-uint256

Note that this kind of randomness is only safe for testing and for not-too-serious projects
Nov 16, 2020, 12:34 PM
Thank you let me look into it.. do you have idea about erc 725 standards?
Nov 16, 2020, 12:34 PM
nope, never heard
Nov 16, 2020, 12:37 PM
art here. https://ethereum.stackexchange.com/questions/884/how-to-convert-an-address-to-bytes-in-solidity
Nov 16, 2020, 12:37 PM
Thank you...
Nov 16, 2020, 12:39 PM

© 2024 Draquery.com All rights reserved.