Skip to content

[Proposal] Random Unification #760

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 3 commits into from
Mar 23, 2018

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Nov 5, 2017

This is the formal proposal for this thread https://forums.swift.org/t/proposal-random-unification/6626 . Will post implementation link in a few.

@Azoy Azoy force-pushed the random-unification branch 2 times, most recently from 654a2c2 to 9f96d78 Compare November 16, 2017 05:26
@Azoy Azoy force-pushed the random-unification branch 2 times, most recently from bb7522d to e63bc9b Compare November 25, 2017 03:47
@Azoy Azoy force-pushed the random-unification branch 6 times, most recently from 5882f19 to 4a783cb Compare December 26, 2017 06:27
@Azoy Azoy force-pushed the random-unification branch 5 times, most recently from fb857d0 to 3c3c75b Compare January 8, 2018 04:51
@Azoy Azoy force-pushed the random-unification branch 5 times, most recently from e46f557 to 4c57e1d Compare January 17, 2018 02:24
@Azoy Azoy force-pushed the random-unification branch from 4c57e1d to 422b564 Compare February 3, 2018 03:40
Update implementation link

Update current example

Correctly gets a number within the bounds

Fixes some typos

Update implementation text

Update proposal to match mailing list discussions

Use `SecRandomCopyBytes` for older macOS versions

Update to reflect mailing list

Rename pick to sampling

Clarify a lot of discussions

Use focus instead of scope

Final remark for T.random

Fix some typos

Prefer UInt over UInt64

Comment more on design

Alternative on Collection.random

Use code blocks for Collection.random

Missed some code

Last change to T.random

Make .random a function

Fix last few .random

Update to reflect evolution discussion

Fix typo

Remove fp range random

Not extension

Minor improvements

Typos, and remove Countable ranges

Add more platforms
@Azoy Azoy force-pushed the random-unification branch from 422b564 to d5c0b0f Compare February 10, 2018 02:48
Update other platforms table
Fix typo

Switch to generic constraints
@Azoy Azoy force-pushed the random-unification branch from 9e898ea to 01445d6 Compare March 13, 2018 07:59
@airspeedswift airspeedswift merged commit 79c2b03 into swiftlang:master Mar 23, 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.

3 participants