iota_common/
random.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2026 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5/// Get a random number generator.
6#[inline(always)]
7pub fn get_rng() -> impl rand::Rng {
8    rand::thread_rng()
9}