Skip to content

[4.2][stdlib] Update default generator to SystemRandomNumberGenerator #17990

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

Conversation

airspeedswift
Copy link
Member

@airspeedswift airspeedswift commented Jul 16, 2018

As described in this forum post as an amendment to SE-0202.

This isn't quite a cherry-pick of #17989 since they have diverged a little. I think there are also some other changes we need to pull over from master, looking at the history.

@airspeedswift
Copy link
Member Author

@swift-ci please test

Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! With one small nit 🔬

@@ -32,7 +32,7 @@ import SwiftShims
/// }
///
/// static func random() -> Weekday {
/// return Weekday.randomWeekday(using: &Random.default)
/// return Weekday.random(using: &Random.default)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example should be updated to reflect the new name & usage.

@airspeedswift
Copy link
Member Author

Thanks all, I'll fix up the docs in a separate PR.

@airspeedswift airspeedswift merged commit bc7f11c into swiftlang:swift-4.2-branch Jul 17, 2018
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.

4 participants