aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-06 10:30:02 -0500
committerJack Lloyd <[email protected]>2017-01-06 10:30:02 -0500
commit82efe72e8fff56144f74379ec667fa97cfcb2a8a (patch)
treeef71ec1c856f183e611c23787389453af1248257 /src
parentdad9914dc6975c66346e6cad5e0f3301039421d0 (diff)
parent7fcd15e93a1b69b6c2080c3d6090ece787862685 (diff)
Merge GH #812 Fix missing return in error case in iOS entropy source
Diffstat (limited to 'src')
-rw-r--r--src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp2
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;
}
}