This adds more accurate utils for generating a snowflake from datetime. #91
@@ -1052,7 +1052,7 @@ def generate_snowflake(dt: datetime.datetime) -> int:
|
||||
|
||||
|
||||
def quick_snowflake() -> int:
|
||||
"""A helper function to return a snowflake from the current UTC time.
|
||||
"""A helper function to return a snowflake from the current UTC time with some randomness to make it more unique.
|
||||
|
||||
Returns
|
||||
--------
|
||||
|
||||
Reference in New Issue
Block a user