aboutsummaryrefslogtreecommitdiff
path: root/src/randomenv.cpp
Commit message (Collapse)AuthorAgeFilesLines
* random: fixes read buffer resizing in RandAddSeedPerfmonEthan Heilman2020-10-071-2/+3
| | | | | + Replaces std::max with std::min to resize buffer in RandAddSeedPerfmon + Documents behavior of RandAddSeedPerfmon
* scripted-diff: Bump copyright headersMarcoFalke2020-04-161-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* Drop unused mach time headersBen Woosley2020-02-281-5/+0
| | | | | Now that we're no longer special-casing clock usage for MacOS, we're not referencing anything defined in these headers.
* random: don't special case clock usage on macOSfanquake2020-02-061-14/+0
| | | | | | | | | | | | | | clock_gettime(), CLOCK_MONOTONIC and CLOCK_REALTIME are all available for use on macOS (now that we require macOS >=10.12). Use them rather than the deprecated mach_timespec_t time API. master: 2019-12-23T20:49:43Z Feeding 216 bytes of dynamic environment data into RNG 2019-12-23T20:50:43Z Feeding 216 bytes of dynamic environment data into RNG this commit: 2019-12-23T20:32:41Z Feeding 232 bytes of dynamic environment data into RNG 2019-12-23T20:33:42Z Feeding 232 bytes of dynamic environment data into RNG
* Put bounds on the number of CPUID leaves exploredPieter Wuille2019-11-201-3/+3
|
* Fix CPUID subleaf iterationPieter Wuille2019-11-191-4/+15
|
* random: stop retrieving random bytes from OpenSSLfanquake2019-11-181-1/+0
| | | | | | | | | | | On the ::SLOW path we would use OpenSSL as an additional source of random bytes. This commit removes that functionality. Note that this was always only an additional source, and that we never checked the return value RAND_bytes(): https://www.openssl.org/docs/manmaster/man3/RAND_bytes.html RAND_bytes() puts num cryptographically strong pseudo-random bytes into buf.
* Use thread-safe atomic in perfmon seederPieter Wuille2019-11-121-4/+6
| | | | Also switch to chrono based types.
* Add information gathered through getauxval()Pieter Wuille2019-11-121-0/+25
| | | | Suggested by Wladimir van der Laan.
* Feed CPUID data into RNGPieter Wuille2019-11-121-0/+35
|
* Use sysctl for seeding on MacOS/BSDPieter Wuille2019-11-121-1/+127
|
* Gather additional entropy from the environmentPieter Wuille2019-11-121-10/+184
| | | | This based on code by Gregory Maxwell.
* Seed randomness with process id / thread id / various clocksPieter Wuille2019-11-121-0/+77
| | | | This sort of data is also used by OpenSSL.
* [MOVEONLY] Move perfmon data gathering to new randomenv modulePieter Wuille2019-11-121-0/+69