You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Default implementation for Uuid returns Uuid::new() which returns a random UUID v4.
This is different from uuid::Uuid::default() which returns the nil UUID, which seems like a more reasonable default. I would normally expect that T::default() == T::default().
I think Uuid::default() should be changed to match uuid::Uuid and return a nil UUID.
The text was updated successfully, but these errors were encountered:
The current
Default
implementation forUuid
returnsUuid::new()
which returns a random UUID v4.This is different from
uuid::Uuid::default()
which returns the nil UUID, which seems like a more reasonable default. I would normally expect thatT::default() == T::default()
.I think
Uuid::default()
should be changed to matchuuid::Uuid
and return a nil UUID.The text was updated successfully, but these errors were encountered: