Remove unnecessary DartIO::EntropySource wrapper (flutter/engine#8635)
This commit is contained in:
committed by
Jason Simmons
parent
1c06891c10
commit
7f196fec73
@@ -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(¶ms);
|
||||
if (init_error) {
|
||||
FML_LOG(FATAL) << "Error while initializing the Dart VM: " << init_error;
|
||||
|
||||
Reference in New Issue
Block a user