OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CRYPTO_RANDOM_H_ | 5 #ifndef CRYPTO_RANDOM_H_ |
6 #define CRYPTO_RANDOM_H_ | 6 #define CRYPTO_RANDOM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "crypto/crypto_export.h" | 10 #include "crypto/crypto_export.h" |
11 | 11 |
12 namespace crypto { | 12 namespace crypto { |
13 | 13 |
14 // Fills the given buffer with |length| random bytes of cryptographically | 14 // Fills the given buffer with |length| random bytes of cryptographically |
15 // secure random numbers. | 15 // secure random numbers. |
16 // |length| must be positive. | 16 // |length| must be positive. |
17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length); | 17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length); |
18 | 18 |
19 } | 19 } |
20 | 20 |
21 #endif | 21 #endif // CRYPTO_RANDOM_H_ |
OLD | NEW |