From 3719d006ac3b5aa6d2beb9739a1d1e637ec3d53f Mon Sep 17 00:00:00 2001 From: Yoshiyuki Mineo Date: Sat, 13 Aug 2022 00:23:02 +0900 Subject: [PATCH] Add a note (#36) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8408f54..9c9ebeb 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,10 @@ func (sf *Sonyflake) NextID() (uint64, error) NextID can continue to generate IDs for about 174 years from StartTime. But after the Sonyflake time is over the limit, NextID returns an error. +> **Note:** +> Sonyflake currently does not use the most significant bit of IDs, +> so you can convert Sonyflake IDs from `uint64` to `int64` safely. + AWS VPC and Docker ------------------