[email protected] | 9b20578 | 2012-08-02 20:22:25 | [diff] [blame] | 1 | // Copyright (c) 2012 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 | #ifndef CRYPTO_RANDOM_H_ |
| 6 | #define CRYPTO_RANDOM_H_ |
| 7 | |
[email protected] | 32c7871 | 2012-12-08 04:08:28 | [diff] [blame] | 8 | #include <stddef.h> |
[email protected] | 9b20578 | 2012-08-02 20:22:25 | [diff] [blame] | 9 | |
| 10 | #include "crypto/crypto_export.h" |
| 11 | |
| 12 | namespace crypto { |
| 13 | |
| 14 | // Fills the given buffer with |length| random bytes of cryptographically |
| 15 | // secure random numbers. |
| 16 | // |length| must be positive. |
| 17 | CRYPTO_EXPORT void RandBytes(void *bytes, size_t length); |
| 18 | |
| 19 | } |
| 20 | |
davidben | 6004dc5 | 2017-02-03 04:15:29 | [diff] [blame] | 21 | #endif // CRYPTO_RANDOM_H_ |