1 // Copyright 2017 The Chromium Authors
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 "partition_alloc/partition_alloc_base/rand_util.h"
6 
7 #include <zircon/syscalls.h>
8 
9 namespace partition_alloc::internal::base {
10 
RandBytes(void * output,size_t output_length)11 void RandBytes(void* output, size_t output_length) {
12   zx_cprng_draw(output, output_length);
13 }
14 
15 }  // namespace partition_alloc::internal::base
16