Skip to content

WASI: use getentropy to get randomized bytes #323

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

Merged
merged 1 commit into from
Aug 7, 2021

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Aug 7, 2021

@MaxDesiatov
Copy link

Submitted upstream as swiftlang#3025

@MaxDesiatov MaxDesiatov merged commit 1feab84 into swiftwasm-release/5.4 Aug 7, 2021
@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented Aug 7, 2021

This should be cherry-picked to swiftwasm and 5.5 branch also

@kateinoigakukun kateinoigakukun deleted the katei/5.4-fix-uuid branch August 7, 2021 10:57
@kateinoigakukun
Copy link
Member Author

I confirmed this patch correctly fixed the issue

$ cat main.swift
import Foundation

print(UUID())

$ wasmer ./main
C46125EF-A0D1-4440-80B0-83FD50275AFD

$ wasmer ./main
5A96D625-EA41-42ED-AC20-EDA178E1D474

@MaxDesiatov
Copy link

SwiftWasm 5.5 PR is merged, it will land on swiftwasm when swiftlang#3025 is merged upstream.

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.

2 participants