diff options
author | Daniel Neus <[email protected]> | 2017-01-06 15:28:49 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2017-01-06 15:28:49 +0100 |
commit | 7fcd15e93a1b69b6c2080c3d6090ece787862685 (patch) | |
tree | 041e830bf058bef87797b8b4326269e753a9a2ad /src/lib | |
parent | a1d25be46c86f37ad1b6b6cf00ee18b2f7dd5456 (diff) |
Return 0 bits in Darwin_SecRandom::poll on SecRandomCopyBytes failure
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp index b53e4061e..1e3613615 100644 --- a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp +++ b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp @@ -23,6 +23,8 @@ size_t Darwin_SecRandom::poll(RandomNumberGenerator& rng) rng.add_entropy(buf.data(), buf.size()); return buf.size() * 8; } + + return 0; } } |