blob: 002616bd30ef7818f34fcf33d2750c824af44f80 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// 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
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00008#include <stddef.h>
Torne (Richard Coles)58218062012-11-14 11:43:16 +00009
10#include "crypto/crypto_export.h"
11
12namespace crypto {
13
14// Fills the given buffer with |length| random bytes of cryptographically
15// secure random numbers.
16// |length| must be positive.
17CRYPTO_EXPORT void RandBytes(void *bytes, size_t length);
18
19}
20
21#endif