Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate UUID generated with RealmUUID.random() #1123

Closed
mohit-sharma-87 opened this issue Nov 10, 2022 · 1 comment · Fixed by #1146
Closed

Duplicate UUID generated with RealmUUID.random() #1123

mohit-sharma-87 opened this issue Nov 10, 2022 · 1 comment · Fixed by #1146
Assignees

Comments

@mohit-sharma-87
Copy link

mohit-sharma-87 commented Nov 10, 2022

Hello,

I have noticed that UUID random function is not returning unique IDs and the issue gets fixed only when the app is reinstalled.

My sample implementation :

Code snippets
Code snippets

@cmelchior
Copy link
Contributor

I have seen the same issue, but only when rerunning apps on the Android Emulator, so I suspect it is a problem with the random generator reusing the same seed in those cases. It should not impact release apps, but we should probably still switch to SecureRandom (which isn't available in Kotlin Multiplatform, but we should be able to get platform implementations for it)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants