Index: third_party/mojo/src/mojo/edk/system/unique_identifier.cc |
diff --git a/third_party/mojo/src/mojo/edk/system/unique_identifier.cc b/third_party/mojo/src/mojo/edk/system/unique_identifier.cc |
index e851e2b0f0d5e36c13680e113a4c4735291ed61e..11e482b64b52728ea0aaf3641bef92f3d08f2398 100644 |
--- a/third_party/mojo/src/mojo/edk/system/unique_identifier.cc |
+++ b/third_party/mojo/src/mojo/edk/system/unique_identifier.cc |
@@ -7,7 +7,7 @@ |
#include <ostream> |
#include "base/strings/string_number_conversions.h" |
-#include "crypto/random.h" |
+#include "mojo/edk/embedder/platform_support.h" |
namespace mojo { |
namespace system { |
@@ -19,9 +19,10 @@ std::ostream& operator<<(std::ostream& out, |
} |
// static |
-UniqueIdentifier UniqueIdentifier::Generate() { |
+UniqueIdentifier UniqueIdentifier::Generate( |
+ embedder::PlatformSupport* platform_support) { |
UniqueIdentifier rv; |
- crypto::RandBytes(rv.data_, sizeof(rv.data_)); |
+ platform_support->GetCryptoRandomBytes(rv.data_, sizeof(rv.data_)); |
return rv; |
} |