multiversx-chain-vm 0.22.1

MultiversX VM implementation and tooling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{TxCache, TxInput};

#[derive(Debug)]
pub struct BlockchainRng;

impl BlockchainRng {
    pub fn new(_tx_input: &TxInput, _tx_cache: &TxCache) -> Self {
        BlockchainRng
    }

    pub fn next_bytes(&mut self, _length: usize) -> Vec<u8> {
        panic!(
            "BlockchainRng not supported for wasm builds, feature `wasm-incompatible` needs to be enabled"
        )
    }
}