aboutsummaryrefslogtreecommitdiff
path: root/core/src/utils/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/utils/mod.rs')
-rw-r--r--core/src/utils/mod.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/core/src/utils/mod.rs b/core/src/utils/mod.rs
deleted file mode 100644
index a3c3f50..0000000
--- a/core/src/utils/mod.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-mod decode;
-mod encode;
-mod path;
-
-pub use decode::decode;
-pub use encode::{encode, encode_into_slice};
-pub use path::{home_dir, tilde_expand};
-
-use rand::{rngs::OsRng, Rng};
-
-/// Generates and returns a random u32 using `rand::rngs::OsRng`.
-pub fn random_32() -> u32 {
- OsRng.gen()
-}
-
-/// Generates and returns a random u16 using `rand::rngs::OsRng`.
-pub fn random_16() -> u16 {
- OsRng.gen()
-}