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

Move the ENTROPY sig to evented semantics #261

Merged
merged 1 commit into from
Jul 6, 2014
Merged

Move the ENTROPY sig to evented semantics #261

merged 1 commit into from
Jul 6, 2014

Conversation

pqwy
Copy link
Contributor

@pqwy pqwy commented Jul 6, 2014

As per discussion with @avsm .

Since the idea of ENTROPY is not to provide random numbers, but environmental noise, and since this noise is opportunistic and not predictably available, instead of giving entropy on demand, the device now emits entropy when it has some.

Goes with the corresponding change to entropy providers.

* environmentally derived. In particular, the amount of entropy in the buffer
* can be far lower than the size of the [buffer].
*
* [source] is a small integer, describing the provider but with no other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could make this slightly more type-safe by leaving source abstract, and having a new_source (perhaps named for debugging) that generates the integer internally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, but that's what I meant by "no other meaning" -- source is really just used for mixing. It has zero meaning here, apart from being an integer.

This is basically its semantics.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.... and here how it's used. The idea is to exploit indeterminate ordering of provider's firing for a little more unpredictability.

avsm added a commit that referenced this pull request Jul 6, 2014
Move the ENTROPY sig to evented semantics
@avsm avsm merged commit ae3c966 into master Jul 6, 2014
@avsm avsm deleted the evented-entropy branch July 6, 2014 18:15
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.

None yet

2 participants