Skip to content

Weird Uuid::default() implementation #530

Closed
@tyilo

Description

@tyilo

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.

Metadata

Metadata

Assignees

Labels

tracked-in-jiraTicket filed in Mongo's Jira system

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions