I want to use action context information, such as block hash code, to generate number as "random" numbers in smart contract.
But I can't find any interface to get block hash code.
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.Sign up to join this community
Block information isn't directly available. These two functions provide information from a user-selected previous block:
There are a couple problems with relying on these: