mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Annotate that get_cyclecount() can be expensive on some platforms,
which juxtaposes nicely with the comment just above on how the harvest function must be cheap.
This commit is contained in:
parent
588dbe0aa0
commit
8f30dde5fe
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ random_yarrow_deinit_harvester(void)
|
|||
* not do anything slow in here!
|
||||
* Implemented as in indirect call to allow non-inclusion of
|
||||
* the entropy device.
|
||||
*
|
||||
* XXXRW: get_cyclecount() is cheap on most modern hardware, where cycle
|
||||
* counters are built in, but on older hardware it will do a real time clock
|
||||
* read which can be quite expensive.
|
||||
*/
|
||||
void
|
||||
random_harvest(void *entropy, u_int count, u_int bits, u_int frac,
|
||||
|
|
|
|||
Loading…
Reference in a new issue