/* * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/nimble-rust/nimble * Licensed under the MIT License. See LICENSE in the project root for license information. */ use rand::prelude::StdRng; use rand::{Rng, SeedableRng}; pub fn generate_deterministic_blob_array(length: usize, seed: u64) -> Vec { let mut rng = StdRng::seed_from_u64(seed); (0..length).map(|_| rng.gen()).collect() }