6 releases (3 stable)
1.1.0 | Jan 10, 2024 |
---|---|
1.0.1 | Oct 20, 2023 |
1.0.0 | Jul 3, 2021 |
0.2.0 | Mar 15, 2021 |
0.1.1 | Oct 10, 2020 |
#1068 in Algorithms
10,651 downloads per month
Used in 45 crates
(37 directly)
6KB
78 lines
random-string
A simple crate that allows you to generate random strings based on a given charset and length.
Usage
Add a dependence in Cargo.toml
[dependencies]
random-string = "1.0"
Example
use random_string::generate;
fn main() {
let charset = "1234567890";
println!("[{}]", generate(6, charset));
}
Dependencies
~36KB