Implement base operator (#1)
Some checks reported errors
continuous-integration/drone/push Build was killed

Add base operator logic

Reviewed-on: #1
This commit is contained in:
2023-05-08 16:20:15 +00:00
parent 87899f57e4
commit e2598d7509
26 changed files with 3955 additions and 89 deletions

11
src/utils.rs Normal file
View File

@@ -0,0 +1,11 @@
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()
}