mirror of
https://github.com/sony/sonyflake.git
synced 2026-01-09 20:57:20 +00:00
* v2: take only 'bitsMachine' least significant bits from generated machine IDs so it doesn't corrupt the other ID parts (#72) Co-authored-by: ok32 <e.starikoff@gmail.com> Co-authored-by: Yoshiyuki Mineo <Yoshiyuki.Mineo@jp.sony.com> * Refactor Sonyflake Compose method to return errors for invalid parameters and update related tests. Consolidate error handling for start time, sequence, and machine ID validations. Remove unused variable in tests for clarity. --------- Co-authored-by: ok32 <artuh.gubanova@gmail.com> Co-authored-by: ok32 <e.starikoff@gmail.com>