Skip to content

Commit 3922f4f

Browse files
authored
UUIDv7: use UTC for timestamp random generation (#10873)
1 parent 592e04b commit 3922f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/uuid.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ if (isInputRange!RNG && isIntegral!(ElementType!RNG))
13861386
*/
13871387
UUID timestampRandomUUID()
13881388
{
1389-
return UUID(Clock.currTime());
1389+
return UUID(Clock.currTime(UTC()));
13901390
}
13911391

13921392
///

0 commit comments

Comments
 (0)