multiversx_chain_vm/host/context/blockchain_rng_unsupported.rs
1use super::{TxCache, TxInput};
2
3#[derive(Debug)]
4pub struct BlockchainRng;
5
6impl BlockchainRng {
7 pub fn new(_tx_input: &TxInput, _tx_cache: &TxCache) -> Self {
8 BlockchainRng
9 }
10
11 pub fn next_bytes(&mut self, _length: usize) -> Vec<u8> {
12 panic!("BlockchainRng not supported for wasm builds, feature `wasm-incompatible` needs to be enabled")
13 }
14}