rand-utf8

Crates.iorand-utf8
lib.rsrand-utf8
version0.0.1
sourcesrc
created_at2022-06-13 21:12:08.285834
updated_at2022-06-13 21:12:08.285834
descriptionRandom utf8 utility
homepage
repositoryhttps://github.com/neonphog/rand-utf8
max_upload_size
id605358
size12,565
David Braden (neonphog)

documentation

https://docs.rs/rand-utf8

README

rand-utf8

Random utf8 utility. This crate is #![no_std] but requires alloc.

Example

let mut rng = rand::rngs::SmallRng::seed_from_u64(0);
let my_str = rand_utf8::rand_utf8(&mut rng, 32);
assert_eq!(32, my_str.as_bytes().len());

License: MIT/Apache-2.0

Commit count: 3

cargo fmt