blob: 743c709898a2fecfd31e7f9790157564338c9304 [file] [log] [blame]
Scott Graham4ffd63b52017-06-01 18:03:331// 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
Scott Grahamfe0e9f462017-09-18 21:25:047#include <zircon/syscalls.h>
Scott Graham4ffd63b52017-06-01 18:03:338
Scott Graham4ffd63b52017-06-01 18:03:339namespace base {
10
Scott Graham4ffd63b52017-06-01 18:03:3311void RandBytes(void* output, size_t output_length) {
Wez53049622018-06-29 05:46:4912 zx_cprng_draw(output, output_length);
Scott Graham4ffd63b52017-06-01 18:03:3313}
14
15} // namespace base