forked from Orchid/orchid
Versioning fuckup
This commit is contained in:
10
src/representations/get_name.rs
Normal file
10
src/representations/get_name.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use std::sync::atomic::AtomicU64;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
static ref NEXT_NAME: AtomicU64 = AtomicU64::new(0);
|
||||
}
|
||||
|
||||
pub fn get_name() -> u64 {
|
||||
NEXT_NAME.fetch_add(1, std::sync::atomic::Ordering::Relaxed)
|
||||
}
|
||||
Reference in New Issue
Block a user