multiversx_chain_vm/tx_mock/
blockchain_rng_unsupported.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")
    }
}