Skip to content

use stable UUID api#1657

Open
luigi617 wants to merge 3 commits into
mainfrom
feat-stabilize-uuid
Open

use stable UUID api#1657
luigi617 wants to merge 3 commits into
mainfrom
feat-stabilize-uuid

Conversation

@luigi617

@luigi617 luigi617 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Issue #

Uuid.random() uses non-cryptographic kotlin.random.Random; duplicate UUIDs (idempotency tokens, invocation IDs) under Lambda SnapStart

Description of changes

Previosly, we use kotlin.random.Random to generate UUID, this is a bug because whenever they use it in SnapStart, the same random UUID will be generated.

Since from Kotlin 2.4.0, UUID standard library api is stabilized, we should use it.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@luigi617 luigi617 marked this pull request as ready for review July 13, 2026 21:22
@luigi617 luigi617 requested a review from a team as a code owner July 13, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant