Alexander Block
0dae46c2fb
Move RandBool() into random.h/cpp
2019-01-09 12:16:12 +01:00
Alexander Block
6989f94d6e
Get rid of InsecureRand and use equivalent FastRandomContext
...
Also extend FastRandomContext to be compatible to existing uses, especially
with std::random_shuffle
2018-01-12 16:37:39 +01:00
Wladimir J. van der Laan
239ce534c2
Merge #8914 : Kill insecure_random and associated global state
...
5eaaa83
Kill insecure_random and associated global state (Wladimir J. van der Laan)
2018-01-12 09:58:14 +01:00
Pieter Wuille
43cbeb7fa5
Merge #7891 : Always require OS randomness when generating secret keys
...
628cf14
Don't use assert for catching randomness failures (Pieter Wuille)
fa2637a
Always require OS randomness when generating secret keys (Pieter Wuille)
2017-12-21 18:50:14 +01:00
UdjinM6
c2ec99ba8e
thread safe rand ( #1157 )
...
* thread safe InsecureRand class
* remove GetInsecureRand, use GetRandInt for performance non-critical parts
2016-11-20 10:52:45 +04:00
crowning-
e32e28afb9
[PrivateSend] Performance tweak: faster shuffling of Masternodes vector ( #1063 )
2016-10-09 15:46:46 +04:00
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-19 19:55:32 +01:00
Michael Ford
78253fcbad
Remove references to X11 licence
2014-12-16 15:56:50 +08:00
Pavel Janík
3a05ba1bfc
Fix typo in doxygen comment.
2014-11-25 08:18:33 +01:00
Wladimir J. van der Laan
65e3a1e762
Make sure that GetRandomBytes never fails
...
We're using GetRandomBytes in several contexts where it's either
unwieldy to return an error, or an error would mean a fatal exception
anyhow.
@gmaxwell checked OpenSSL a while ago and discovered that it never
actually fails, but it can't hurt to be a bit paranoid here.
2014-11-07 13:49:25 +01:00
Pieter Wuille
20e01b1a03
Apply clang-format on some infrequently-updated files
2014-09-19 19:21:46 +02:00
Philip Kaufmann
6354935c48
move rand functions from util to new random.h/.cpp
2014-07-09 09:42:19 +02:00