From 00c61c48d0448b0685ac93bab31d2a50bbe3120e Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 10 Jun 2016 18:51:24 -0500 Subject: [PATCH] Use nodeShift instead of 12. --- snowflake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowflake.go b/snowflake.go index ca0b3dd..110df99 100644 --- a/snowflake.go +++ b/snowflake.go @@ -117,7 +117,7 @@ func (f ID) Time() int64 { // Node returns an int64 of the snowflake ID node number func (f ID) Node() int64 { - return int64(f) & 0x00000000003FF000 >> 12 + return int64(f) & 0x00000000003FF000 >> nodeShift } // Step returns an int64 of the snowflake step (or sequence) number