mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-28 11:47:01 +02:00
Decouple core Yaak logic from Tauri (#354)
This commit is contained in:
6
crates/yaak-plugins/src/util.rs
Normal file
6
crates/yaak-plugins/src/util.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use rand::Rng;
|
||||
use rand::distr::Alphanumeric;
|
||||
|
||||
pub fn gen_id() -> String {
|
||||
rand::rng().sample_iter(&Alphanumeric).take(5).map(char::from).collect()
|
||||
}
|
||||
Reference in New Issue
Block a user