Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: crypto/random.h

Issue 10698177: Added crypto random-number generator (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use WriteInto Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 #pragma once
Ryan Sleevi 2012/07/31 23:03:48 nit: remove this (per the great purge) It also us
6
7 #ifndef CRYPTO_RANDOM_H_
8 #define CRYPTO_RANDOM_H_
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
21 #endif
22
Ryan Sleevi 2012/07/31 23:03:48 delete blank line (but ensure newline terminated o
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698