Chromium Code Reviews| Index: crypto/random.h |
| diff --git a/crypto/random.h b/crypto/random.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b9fc83709076f3751d49fd94d1ad24f9c1762f9f |
| --- /dev/null |
| +++ b/crypto/random.h |
| @@ -0,0 +1,19 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CRYPTO_RANDOM_H_ |
| +#define CRYPTO_RANDOM_H_ |
| + |
| +#include "crypto/crypto_export.h" |
| + |
| +namespace crypto { |
| + |
| +// Fills the given buffer with |length| random bytes of cryptographically |
| +// secure random numbers. |
| +// |length| must be positive. |
| +CRYPTO_EXPORT void RandBytes(void *bytes, size_t length); |
| + |
| +} |
|
akalin
2012/08/02 07:01:12
} // namespace crypto
|
| + |
| +#endif |