Type Alias hedera::PrngTransaction

source ·
pub type PrngTransaction = Transaction<PrngTransactionData>;
Expand description

Random Number Generator Transaction.

Aliased Type§

struct PrngTransaction { /* private fields */ }

Implementations§

source§

impl PrngTransaction

source

pub fn get_range(&self) -> Option<u32>

Returns the upper-bound for the random number.

source

pub fn range(&mut self, range: u32) -> &mut Self

Sets the upper-bound for the random number.

If the value is zero, instead of returning a 32-bit number, a 384-bit number will be returned.