pre-hash starting uuid

This commit is contained in:
Simon Gardling 2022-05-24 12:47:33 -04:00
parent 6d76758223
commit dafe989cbe
3 changed files with 3 additions and 7 deletions

View File

@ -18,9 +18,11 @@ pub struct FunctionManager {
impl Default for FunctionManager {
fn default() -> Self {
// hash of 684fc8be-4ba0-408d-96ef-480b0642126f
// is 11414819524356497634
Self {
functions: vec![(
Id::new(uuid!("684fc8be-4ba0-408d-96ef-480b0642126f")), // Random uuid here to avoid call to `Uuid::new_v4()`
Id::new_from_u64(11414819524356497634), // Random uuid here to avoid call to `Uuid::new_v4()`
FunctionEntry::EMPTY,
)],
}

View File

@ -14,9 +14,6 @@
#[macro_use]
extern crate static_assertions;
#[macro_use]
extern crate uuid;
mod consts;
mod data;
mod function_entry;

View File

@ -14,9 +14,6 @@
#[macro_use]
extern crate static_assertions;
#[macro_use]
extern crate uuid;
mod consts;
mod data;
mod function_entry;