class ULID::MonotonicFactory

Defined in:

ulid.cr

Constructors

Instance Method Summary

Instance methods inherited from class ULID::Factory

gen_rand(seed_time : Time) : UInt128 gen_rand, gen_time(time : Time) : UInt64 gen_time, rand128 : UInt128 rand128, random : Random random, random=(random : Random) random=, string(seed_time : Time = Time.utc) : String string, uint(seed_time : Time = Time.utc) : UInt128 uint, ulid(seed_time : Time = Time.utc) : ULID ulid, uuid(seed_time : Time = Time.utc) : UUID uuid

Constructor methods inherited from class ULID::Factory

new(random : Random = Random.new) new

Constructor Detail

def self.new(random = Random.new) #

[View source]

Instance Method Detail

def gen_rand(seed_time : Time) : UInt128 #

returns a random UInt128 with the high-order 48 bits zeroed out


[View source]