Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame^] | 1 | // Copyright 2017 The Chromium Authors |
Scott Graham | 4ffd63b5 | 2017-06-01 18:03:33 | [diff] [blame] | 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 Graham | fe0e9f46 | 2017-09-18 21:25:04 | [diff] [blame] | 7 | #include <zircon/syscalls.h> |
Scott Graham | 4ffd63b5 | 2017-06-01 18:03:33 | [diff] [blame] | 8 | |
Scott Graham | 4ffd63b5 | 2017-06-01 18:03:33 | [diff] [blame] | 9 | namespace base { |
10 | |||||
Scott Graham | 4ffd63b5 | 2017-06-01 18:03:33 | [diff] [blame] | 11 | void RandBytes(void* output, size_t output_length) { |
Wez | 5304962 | 2018-06-29 05:46:49 | [diff] [blame] | 12 | zx_cprng_draw(output, output_length); |
Scott Graham | 4ffd63b5 | 2017-06-01 18:03:33 | [diff] [blame] | 13 | } |
14 | |||||
15 | } // namespace base |