mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
22 lines
517 B
C
22 lines
517 B
C
|
// 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 <stddef.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);
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // CRYPTO_RANDOM_H_
|