| Index: runtime/bin/crypto_android.cc
|
| diff --git a/runtime/bin/crypto_android.cc b/runtime/bin/crypto_android.cc
|
| index 4b55b910146141e8ad1a9277c76909f9d7eada9e..be91d4ee9258a45c6b92eba40bd088d80d9d31e5 100644
|
| --- a/runtime/bin/crypto_android.cc
|
| +++ b/runtime/bin/crypto_android.cc
|
| @@ -10,10 +10,8 @@
|
|
|
| #include "bin/fdutils.h"
|
| #include "bin/crypto.h"
|
| -
|
| #include "platform/signal_blocker.h"
|
|
|
| -
|
| namespace dart {
|
| namespace bin {
|
|
|
| @@ -21,7 +19,9 @@ bool Crypto::GetRandomBytes(intptr_t count, uint8_t* buffer) {
|
| ThreadSignalBlocker signal_blocker(SIGPROF);
|
| intptr_t fd = TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(
|
| open("/dev/urandom", O_RDONLY));
|
| - if (fd < 0) return false;
|
| + if (fd < 0) {
|
| + return false;
|
| + }
|
| intptr_t bytes_read = 0;
|
| do {
|
| int res = TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(
|
|
|