pub fn random_seed() -> Vec<u8> ⓘ
Expand description
Returns the random seed from the current block. This 32 byte hash is based on the VRF value from the block. This value is not modified in any way each time this function is called within the same method/block.
§Examples
use near_sdk::env::random_seed;
assert_eq!(random_seed(), vec![0; 32]);