std: add CCRandomGenerateBytes macOs native api.#15317
std: add CCRandomGenerateBytes macOs native api.#15317Vexu merged 2 commits intoziglang:masterfrom devnexen:darwin_rand_nativegen
Conversation
|
cc @kubkon I think it can replace, for iOs/macOs only tough, the actual arc4random_buf call from the getrandom wrapper for similar reasons as openssl did (e.g. this call returning a status, possible issue with no len with arc4random_buf, ...), what do you think ? |
If this is what openssl did I think it's a good idea. @jedisct1 thoughts? |
|
As far as I know the underlying RNG is exactly the same. The only difference being that using that API increases the chances of getting an app accepted on the App Store. Still not a bad thing. |
|
Mhm, I see. Is there a minimum OS version where this is available? If this is a fairly recent addition we need to either version-gate, or wait a couple of macOS releases for it to be supported across the latest OS versions. |
|
Since Yosemite/iOs 8. |
|
Just to double check, |
|
not part of Security.framework. |
|
In that case I would be in favour of moving from |
|
@kubkon what do you think now ? 🙂 |
|
Are the macOS CI failures related? |
|
does not seem to be the case, beside it happens only on x86 64 arch. |
|
seems all pass @kubkon 🙂 |
|
cc @Vexu 🙂 |
No description provided.