-
Notifications
You must be signed in to change notification settings - Fork 30
UUID()
does not produce proper UUIDs
#3320
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
Comments
I've had this happen several months ago but wasn't able to reproduce since. Can you share the setup your seeing this in? |
when importing both Foundation and CoreFoundation I get the same output. |
In WASI, /dev is not predefined and this line always fails to read the randomized content, so the buffer is always zero. We should use random_get WASI API instead of reading /dev/urandom |
if there's a |
Resolved by swiftwasm/swift-corelibs-foundation#323 |
TWIMC, the fix has been included in SwiftWasm 5.4.0 |
Always produces
00000000-0000-4000-8000-000000000000
. This may have been chosen at random (once), but lacks sufficient entropy.The text was updated successfully, but these errors were encountered: