Commit Graph

107 Commits (e6bd74b2e5f7f68614ca77a6667520b39feb9247)

Author SHA1 Message Date
Sebastian Falbesoner e829c9afbf refactor: replace sizeof(a)/sizeof(a[0]) by std::size (C++17)
4 years ago
fanquake 04a0676b3f
Merge #17563: lib: fix a compiler warning: unused GetDevURandom()
4 years ago
MarcoFalke 951870807e
Merge #18781: Add templated GetRandDuration<>
5 years ago
Vasil Dimov 71f183a49b
build: warn on potentially uninitialized reads
5 years ago
MarcoFalke fa0e5b89cf
Add templated GetRandomDuration<>
5 years ago
fanquake 0ef0d33f75
Merge #18038: P2P: Mempool tracks locally submitted transactions to improve wallet privacy
5 years ago
Amiti Uttarwar 7e93eecce3 [util] Add method that returns random time in milliseconds
5 years ago
MarcoFalke fa488f131f
scripted-diff: Bump copyright headers
5 years ago
Vasil Dimov ca2e474372
Fix a compiler warning: unused GetDevURandom()
5 years ago
fanquake e90e3e684f
build: fix sysctl() detection on macOS
5 years ago
fanquake f9f210d8de
doc: fix GetTimeMicros() comment in random.cpp
5 years ago
fanquake a889711562
rand: remove getentropy() fallback for macOS < 10.12
5 years ago
MarcoFalke aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
5 years ago
Pieter Wuille 0ccad08fb2 Make env data logging optional
5 years ago
Pieter Wuille 8bda0960f9 Move events_hasher into RNGState()
5 years ago
Wladimir J. van der Laan 6fff333c9f
Merge #17507: random: mark RandAddPeriodic and SeedPeriodic as noexcept
5 years ago
Matt Corallo 02d8c56a18 Seed RNG with precision timestamps on receipt of net messages.
5 years ago
fanquake 55b2cb199c
random: mark RandAddPeriodic and SeedPeriodic as noexcept
5 years ago
fanquake 461e547877
doc: correct random.h docs after #17270
5 years ago
fanquake b49b6b0f70
random: Remove remaining OpenSSL calls and locking infrastructure
5 years ago
fanquake 4fcfcc294e
random: stop retrieving random bytes from OpenSSL
5 years ago
fanquake 5624ab0b4f
random: stop feeding RNG output back into OpenSSL
5 years ago
Pieter Wuille d1c02775aa Report amount of data gathered from environment
5 years ago
Pieter Wuille d61f2bb076 Run background seeding periodically instead of unpredictably
5 years ago
Pieter Wuille 723c796667 [MOVEONLY] Move cpuid code from random & sha256 to compat/cpuid
5 years ago
Pieter Wuille cea3902015 [MOVEONLY] Move perfmon data gathering to new randomenv module
5 years ago
fanquake b51bae1a5a doc: minor corrections in random.cpp
5 years ago
fanquake e892f9648a
random: remove call to RAND_screen() (Windows only)
5 years ago
fanquake 5013171eaf
doc: correct function name in ReportHardwareRand()
5 years ago
practicalswift 084e17cebd Remove unused includes
5 years ago
MarcoFalke fa883ab35a
net: Use mockable time for tx download
5 years ago
Wladimir J. van der Laan 82b64a5a81
Merge #15224: Add RNG strengthening (10ms once every minute)
6 years ago
Pieter Wuille 1d207bc46f Add hash strengthening to the RNG
6 years ago
Jonas Schnelli 2bc2b8b49a
Add ChaCha20 encryption option (XOR)
6 years ago
Wladimir J. van der Laan 29e82e460e
Merge #15250: Use RdSeed when available, and reduce RdRand load
6 years ago
Pieter Wuille 1435fabc19 Use RdSeed when available, and reduce RdRand load
6 years ago
MarcoFalke fae169c95e
test: Make bloom tests deterministic
6 years ago
Pieter Wuille 223de8d94d Document RNG design in random.h
6 years ago
Pieter Wuille f2e60ca985 Use secure allocator for RNG state
6 years ago
Pieter Wuille cddb31bb0a Encapsulate RNGState better
6 years ago
Pieter Wuille 152146e782 DRY: Implement GetRand using FastRandomContext::randrange
6 years ago
Pieter Wuille a1f252eda8 Sprinkle some sweet noexcepts over the RNG code
6 years ago
Pieter Wuille 4ea8e50837 Remove hwrand_initialized.
6 years ago
Pieter Wuille 9d7032e4f0 Switch all RNG code to the built-in PRNG.
6 years ago
Pieter Wuille 16e40a8b56 Integrate util/system's CInit into RNGState
6 years ago
Pieter Wuille 2ccc3d3aa3 Abstract out seeding/extracting entropy into RNGState::MixExtract
6 years ago
Pieter Wuille aae8b9bf0f Add thread safety annotations to RNG state
6 years ago
Pieter Wuille d3f54d1c82 Rename some hardware RNG related functions
6 years ago
Pieter Wuille 05fde14e3a Automatically initialize RNG on first use.
6 years ago
Pieter Wuille 2d1cc50939 Don't log RandAddSeedPerfmon details
6 years ago