| ... | @@ -19,7 +19,7 @@ pub const Factory = struct { | ... | @@ -19,7 +19,7 @@ pub const Factory = struct { |
| 19 | pub fn newULID(self: Factory) ULID { | 19 | pub fn newULID(self: Factory) ULID { |
| 20 | const now = std.time.milliTimestamp(); | 20 | const now = std.time.milliTimestamp(); |
| 21 | return ULID{ | 21 | return ULID{ |
| 22 | .timestamp = std.math.cast(u48, now - self.epoch) orelse @panic("time.milliTimestamp() is higher than 281474976710655"), | 22 | .timestamp = std.math.cast(u48, now - self.epoch) orelse @panic("time.milliTimestamp() is higher than 281474976710655"), // this is Tue Aug 02 10889 05:31:50.655 UTC |
| 23 | .randomnes = self.rand.int(u80), | 23 | .randomnes = self.rand.int(u80), |
| 24 | }; | 24 | }; |
| 25 | } | 25 | } |