Skip to content

Commit

Permalink
Use a random SHA-1 hash instead of uuid.uuid4() to create a UUID.
Browse files Browse the repository at this point in the history
  • Loading branch information
jieguangzhou authored and blythed committed Jul 31, 2024
1 parent 2aafee9 commit 618f436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superduper/base/leaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Leaf(metaclass=LeafMeta):

identifier: str
db: dc.InitVar[t.Optional['Datalayer']] = None
uuid: str = dc.field(default_factory=lambda: str(uuid.uuid4()))
uuid: str = dc.field(default_factory=lambda: str(uuid.uuid4()).replace('-', ''))

@property
def metadata(self):
Expand Down

0 comments on commit 618f436

Please sign in to comment.