rand_util_fuchsia.cc 360 B

123456789101112131415
  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. #include "base/rand_util.h"
  5. #include <zircon/syscalls.h>
  6. namespace base {
  7. void RandBytes(void* output, size_t output_length) {
  8. zx_cprng_draw(output, output_length);
  9. }
  10. } // namespace base