// seed.rs // // Copyright 2018 Ricardo Silva Veloso // // Licensed under the Apache License, Version 2.0 or the MIT License // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // // SPDX-License-Identifier: (MIT OR Apache-2.0) use brids::{Cnpj, Cpf}; use rand::{rngs::StdRng, Rng, SeedableRng}; fn main() { let mut rng = StdRng::seed_from_u64(123); println!("Random CNPJ number: {}", rng.gen::()); println!("Random CPF number: {}", rng.gen::()); }