Skip to content
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

[SR-11461] Improve next(upperBound) to use all bits generated #53862

Open
stephentyrone opened this issue Sep 12, 2019 · 3 comments
Open

[SR-11461] Improve next(upperBound) to use all bits generated #53862

stephentyrone opened this issue Sep 12, 2019 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. numerics Area → standard library: Numeric API standard library Area: Standard library umbrella

Comments

@stephentyrone
Copy link
Member

Previous ID SR-11461
Radar None
Original Reporter @stephentyrone
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, numerics
Assignee None
Priority Medium

md5: 1bf7de03366049df3706fdb318f05510

Issue Description:

For small integer types,

@stephentyrone
Copy link
Member Author

CC @Azoy @natecook1000

@Azoy
Copy link
Member

Azoy commented Sep 12, 2019

Could we do number 1 for the short term and look at going for number 2 in the long term? Am I correct in thinking that buffering draws would be something along the lines of a `fillBytes` method? Would both approaches require an evolution proposal? The first option seems like it could be added at anytime (while alerting people on the forums ofc).

@stephentyrone
Copy link
Member Author

The first definitely does not require evolution. The second would. And yes, the first can be done quickly (I was planning to do it while traveling this weekend).

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. numerics Area → standard library: Numeric API standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants