From 566f2b755c477215a656d2df1eae611a411f98c3 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 11 Aug 2024 00:00:33 -0700 Subject: [PATCH] add a comment about this magic number --- ulid.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulid.zig b/ulid.zig index 2d745e7208024c61e0c5f0249c3a30882da4c5e3..e366c235a429b38b95588a1cd0274e7d865373a7 100644 --- a/ulid.zig +++ b/ulid.zig @@ -19,7 +19,7 @@ pub const Factory = struct { pub fn newULID(self: Factory) ULID { const now = std.time.milliTimestamp(); return ULID{ - .timestamp = std.math.cast(u48, now - self.epoch) orelse @panic("time.milliTimestamp() is higher than 281474976710655"), + .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 .randomnes = self.rand.int(u80), }; } -- 2.54.0