mysten_common::random

Function get_rng

Source
pub fn get_rng() -> impl Rng
Expand description

Get a random number generator.

If we are running in antithesis mode, use the antithesis RNG. Otherwise, use the rand::thread_rng().