MinioK8sBuckets/src/utils.rs
Pierre Hubert e2598d7509
Some checks reported errors
continuous-integration/drone/push Build was killed
Implement base operator (#1)
Add base operator logic

Reviewed-on: #1
2023-05-08 16:20:15 +00:00

12 lines
264 B
Rust

use rand::distributions::Alphanumeric;
use rand::Rng;
/// Generate a random string of a given size
pub fn rand_str(len: usize) -> String {
rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(len)
.map(char::from)
.collect()
}