Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/ohttp/src/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 494 B image not shown  

Quelle  rand.rs   Sprache: unbekannt

 
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use ::rand::{thread_rng, RngCore};

#[must_use]
pub fn random(size: usize) -> Vec<u8> {
    let mut rng = thread_rng();
    let mut buf = vec![0; size];
    rng.fill_bytes(&mut buf);
    buf
}

[ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet)  ]