2018-03-28 17:50:25 -04:00
|
|
|
use uuid::Uuid;
|
2018-03-25 14:55:38 -04:00
|
|
|
|
2018-12-04 15:29:23 -05:00
|
|
|
#[allow(unused)]
|
|
|
|
pub fn pid() -> u32 {
|
|
|
|
std::process::id()
|
2018-03-25 14:55:38 -04:00
|
|
|
}
|
2018-03-28 17:50:25 -04:00
|
|
|
|
|
|
|
pub fn nonce() -> String {
|
|
|
|
Uuid::new_v4().to_string()
|
|
|
|
}
|