module ObjectId

Defined in:

objectid-crystal.cr

Constant Summary

COUNTER = Atomic.new(Random.new.next_int.abs)
MID = macaddr[6, 6]
PID = (Process.pid | 4096).to_s(16)

Constructors

Class Method Summary

Constructor Detail

def self.new(base = 36, timestamp = Time.now.to_unix) #

[View source]

Class Method Detail

def self.macaddr #

[View source]