[M85 Dev][EFL] Fix crashes at webview launch
[platform/framework/web/chromium-efl.git] / base / rand_util_fuchsia.cc
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/rand_util.h"
6
7 #include <zircon/syscalls.h>
8
9 namespace base {
10
11 void RandBytes(void* output, size_t output_length) {
12   zx_cprng_draw(output, output_length);
13 }
14
15 }  // namespace base