- Notifications
You must be signed in to change notification settings - Fork5.2k
Use Apple's CCRandomGenerateBytes in GetCryptographicallySecureRandomBytes#51526
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…Bytes.The Apple API offers significant performance improvements (an order of a magnitude) overreading from /dev/urandom.
ghost commentedApr 19, 2021
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly onearea label. |
Uh oh!
There was an error while loading.Please reload this page.
stephentoub left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nice.
jkotas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks great. Thank you!
ghost commentedApr 20, 2021
Hello@jkotas! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me ( |
vcsjones commentedApr 21, 2021
I think the build is wedged. |
jkotas commentedApr 21, 2021
This does not affect browser, ignoring runtime-staging Browser leg. |
Uh oh!
There was an error while loading.Please reload this page.
The Apple API offers significant performance improvements (an order of magnitude) over reading from /dev/urandom.
Closes#50897
BenchmarkDotNet=v0.12.1.20210419-develop, OS=macOS Big Sur 11.2.3 (20D91) [Darwin 20.3.0]
Intel Core i7-8700B CPU 3.20GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
.NET SDK=6.0.100-preview.3.21202.5
[Host] : .NET 6.0.0 (6.0.21.20104), X64 RyuJIT
Job-JBYKHU : .NET 6.0.0 (42.42.42.42424), X64 RyuJIT
Job-LIKOBM : .NET 6.0.0 (42.42.42.42424), X64 RyuJIT
Benchmark code is available athttps://github.com/vcsjones/DotNetCryptoBenches/blob/610b5b2c9865e9fa27b7834ce0dcd0666d776e4d/src/RngBench.cs
/cc@GrabYourPitchforks@jkotas