<commit_before>extern crate rand;
extern crate wasm_bindgen;

use rand::rngs::{OsRng, StdRng};
use rand::FromEntropy;
use rand::{Rng, RngCore, SeedableRng};
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub fn generate_from_seed(seed: u32) -> i32 {
    StdRng::seed_from_u64(seed as u64).gen()
}

#[wasm_bindgen]
pub fn generate_from_os_rand() -> i32 {
    OsRng::new().unwrap().gen()
}

#[wasm_bindgen]
pub fn generate_from_entropy() -> i32 {
    StdRng::from_entropy().gen()
}
<commit_msg>Remove unused RngCore<commit_after>extern crate rand;
extern crate wasm_bindgen;

use rand::rngs::{OsRng, StdRng};
use rand::FromEntropy;
use rand::{Rng, SeedableRng};
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub fn generate_from_seed(seed: u32) -> i32 {
    StdRng::seed_from_u64(seed as u64).gen()
}

#[wasm_bindgen]
pub fn generate_from_os_rand() -> i32 {
    OsRng::new().unwrap().gen()
}

#[wasm_bindgen]
pub fn generate_from_entropy() -> i32 {
    StdRng::from_entropy().gen()
}

{'fraction_non_alphanumeric': 0.16378433367243134, 'fraction_numerical': 0.024415055951169887, 'mean_word_length': 5.929577464788732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4014436', 'n_tokens_mistral': 427, 'n_tokens_neox': 416, 'n_words': 77}