Jack Grigg
bf6a138304
Address review comments
2017-01-23 17:06:54 +01:00
Jack Grigg
207924a1d5
Remove OpenSSL PRNG reseeding
...
Per https://download.libsodium.org/doc/generating_random_data/ reseeding the
default libsodium PRNG is not required.
2017-01-23 17:06:54 +01:00
Jack Grigg
13124da0b6
Update comment
2017-01-23 17:06:54 +01:00
Scott
e5df7ee78e
Update random.h
...
While I'm making an argument for better consistency, I might as well be self-consistent.
2017-01-23 17:06:54 +01:00
Simon
38276c6ba2
Add GenIdentity, an identity function for MappedShuffle.
...
We use this function in z_sendmany as part of the fix for #1779 .
2016-11-05 14:17:19 -07:00
Jack Grigg
aa36398b27
Add more assertions, throw if find_output params are invalid
2016-10-19 08:49:08 -05:00
Jack Grigg
0382417fee
Implement MappedShuffle for tracking the permutation of an array
2016-10-18 00:20:47 -05: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