fake 5.1.0

An easy to use library and command line for generating fake data like name, number, address, lorem, dates, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Dummy, Fake, Faker};
use rand::RngExt;

use random_color::{options::Luminosity, RandomColor};

impl Dummy<Faker> for RandomColor {
    fn dummy_with_rng<R: RngExt + ?Sized>(_: &Faker, rng: &mut R) -> Self {
        let mut c = RandomColor::new();
        c.seed(Faker.fake_with_rng::<u64, _>(rng))
            .alpha(Faker.fake_with_rng::<f32, _>(rng))
            .luminosity(Luminosity::Random);
        c
    }
}