Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
dart-lang
sdk
runtime
bin
crypto_fuchsia.cc
Go to the documentation of this file.
1
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
#include "
platform/globals.h
"
6
#if defined(DART_HOST_OS_FUCHSIA)
7
8
#include "
bin/crypto.h
"
9
10
#include <zircon/syscalls.h>
11
12
namespace
dart
{
13
namespace
bin {
14
15
bool
Crypto::GetRandomBytes
(intptr_t
count
, uint8_t*
buffer
) {
16
zx_cprng_draw(
buffer
,
count
);
17
return
true
;
18
}
19
20
}
// namespace bin
21
}
// namespace dart
22
23
#endif
// defined(DART_HOST_OS_FUCHSIA)
count
int count
Definition
FontMgrTest.cpp:50
dart::bin::Crypto::GetRandomBytes
static bool GetRandomBytes(intptr_t count, uint8_t *buffer)
crypto.h
buffer
static const uint8_t buffer[]
Definition
fl_pixel_buffer_texture_test.cc:44
dart
Definition
dart_vm.cc:33
globals.h
Generated on Fri Apr 26 2024 06:14:40 for Flutter Engine by
1.9.8