Skip to content

WIN32 Seed Cleanup#5824

Merged
laanwj merged 1 commit intomasterfrom
unknown repository
Feb 26, 2015
Merged

WIN32 Seed Cleanup#5824
laanwj merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Feb 25, 2015

WIN32 cleanup of RandAddSeedPerfmon.

@gmaxwell
Copy link
Contributor

What is the purpose of this change? The current behavior is intentional.

@ghost
Copy link
Author

ghost commented Feb 25, 2015

@gmaxwell Please, do tell. The change introduced here is self-evident, the current intent is less so.

@gmaxwell
Copy link
Contributor

I misread the diff and thought you were moving the ifdef WIN32 above the randaddseed(), and thought your goal was to remove all non-urandom sources of entropy from the pool. (which would be unfortunate considering the frequent dev/random failures https://lists.freebsd.org/pipermail/freebsd-current/2015-February/054580.html )

Please provide a commit message..

@ghost
Copy link
Author

ghost commented Feb 25, 2015

'WIN32 Seed Cleanup' is the commit message, but certainly not opposed to a more in-depth exposé of your choosing.

@paveljanik
Copy link
Contributor

ACK
What about:
Remember the last time of performance data use on Windows only.

@laanwj
Copy link
Member

laanwj commented Feb 25, 2015

If you propose a change to the code, the burden of explaining why it is useful is up to you. Something may look 'self-evident' to you but it may not be to others.

That said, ACK after adding a more explanatory commit message.

@gmaxwell
Copy link
Contributor

The message I would have written would be:

"Move nLastPerfmon behind win32 ifdef.
Code to avoid calling Perfmon too often is only needed when perfmon is actually going to get called.
This is not intended to make any functional difference in the addition of entropy to the random pool."

Code to avoid calling Perfmon too often is only needed when perfmon is actually going to get called.
This is not intended to make any functional difference in the addition of entropy to the random pool.
@ghost
Copy link
Author

ghost commented Feb 25, 2015

The commit message has now been updated accordingly.

@gmaxwell
Copy link
Contributor

utACK. Thanks!

@laanwj
Copy link
Member

laanwj commented Feb 26, 2015

Thanks, ACK

@laanwj laanwj merged commit 32eaf8a into bitcoin:master Feb 26, 2015
laanwj added a commit that referenced this pull request Feb 26, 2015
32eaf8a WIN32 Seed Cleanup: Move nLastPerfmon behind win32 ifdef. Code to avoid calling Perfmon too often is only needed when perfmon is actually going to get called. This is not intended to make any functional difference in the addition of entropy to the random pool. (21E14)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants