Skip to content

Prevent arbitrary objects from conforming to RNG. #36982

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
Apr 22, 2021

Conversation

stephentyrone
Copy link
Contributor

@stephentyrone stephentyrone commented Apr 21, 2021

Me, sobbing: "Look, you can't just point at an empty struct and call it a RandomNumberGenerator."
Swift 5.4, pointing at anything: "RNG."

This a cherry-pick of #36969 for 5.5

Resolves rdar://76660011

Me, sobbing: "Look, you can't just point at an empty struct and call it a RandomNumberGenerator."
Swift 5.4, pointing at anything: "RNG."
@stephentyrone
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 32aecb0

@stephentyrone stephentyrone changed the title Prevent arbitrary objects from conforming to RNG. (#36969) Prevent arbitrary objects from conforming to RNG. Apr 21, 2021
@stephentyrone
Copy link
Contributor Author

@swift-ci please test linux

@stephentyrone stephentyrone merged commit 99c521b into swiftlang:release/5.5 Apr 22, 2021
@stephentyrone stephentyrone deleted the haha-rng-5.5 branch April 22, 2021 12:49
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.

3 participants