提交 4688dc77 编写于 作者: M Matthew Dempsky 提交者: Jason Simmons

Remove unnecessary DartIO::EntropySource wrapper (#8635)

上级 0fcfa0df
......@@ -21,8 +21,4 @@ void DartIO::InitForIsolate() {
}
}
bool DartIO::EntropySource(uint8_t* buffer, intptr_t length) {
return dart::bin::GetEntropy(buffer, length);
}
} // namespace flutter
......@@ -14,7 +14,6 @@ namespace flutter {
class DartIO {
public:
static void InitForIsolate();
static bool EntropySource(uint8_t* buffer, intptr_t length);
private:
FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartIO);
......
......@@ -383,7 +383,7 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
DartIsolate::DartIsolateCleanupCallback);
params.thread_exit = ThreadExitCallback;
params.get_service_assets = GetVMServiceAssetsArchiveCallback;
params.entropy_source = DartIO::EntropySource;
params.entropy_source = dart::bin::GetEntropy;
char* init_error = Dart_Initialize(&params);
if (init_error) {
FML_LOG(FATAL) << "Error while initializing the Dart VM: " << init_error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册