| Index: crypto/random.cc
|
| diff --git a/crypto/random.cc b/crypto/random.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a19bb1a11c78e4e539c31545b4f840bec21848d5
|
| --- /dev/null
|
| +++ b/crypto/random.cc
|
| @@ -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.
|
| +
|
| +#include "crypto/random.h"
|
| +
|
| +#include "base/rand_util.h"
|
| +
|
| +namespace crypto {
|
| +
|
| +void RandBytes(void *bytes, size_t length) {
|
| + // It's OK to call base::RandBytes(), because it's already strongly random.
|
| + // But _other_ code should go through this function to ensure that code which
|
| + // needs secure randomness is easily discoverable.
|
| + base::RandBytes(bytes, length);
|
| +}
|
| +
|
| +} // namespace crypto
|
| +
|
|
|