Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

For BSD/APPLE platform using native random calls. - #8

Closed
devnexen wants to merge 1 commit into
google:masterfrom
devnexen:arc4random_usage
Closed

devnexen wants to merge 1 commit into
google:masterfrom
devnexen:arc4random_usage

Conversation

@devnexen

Copy link
Copy Markdown

Solution not involving file descriptors, seeded upon fork and in
a regular basis.

Solution not involving file descriptors, seeded upon fork and in
a regular basis.
@Dor1s

Dor1s commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Thanks for the patch! Could you please clarify why is this needed?

@devnexen

devnexen commented Aug 2, 2019

Copy link
Copy Markdown
Author

In some configurations, file descriptors can be limited so this is the opportunity to save one, to get really proper randomness without having to reseed manually while having good performance.

@Dor1s

Dor1s commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

Thanks for clarifying. I don't think that this is a strong enough reason for complicating the code with additional preprocessor directives. Plus, we don't have any infrastructure to test BSD/Apple specific changes at this point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants