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

Unified Diff: base/rand_util_win.cc

Issue 10698177: Added crypto random-number generator (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment fixes 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 side-by-side diff with in-line comments
Download patch
Index: base/rand_util_win.cc
diff --git a/base/rand_util_win.cc b/base/rand_util_win.cc
index ec0411efd3add4ba6be9d1ab57c53deb9c32cadf..015490789c861b3bdbed49404117332c99a2b07c 100644
--- a/base/rand_util_win.cc
+++ b/base/rand_util_win.cc
@@ -21,6 +21,7 @@ uint32 RandUint32() {
namespace base {
+// NOTE: This function must be cryptographically secure: crbug.com/140076
akalin 2012/08/02 07:01:12 here too
uint64 RandUint64() {
uint32 first_half = RandUint32();
uint32 second_half = RandUint32();

Powered by Google App Engine
This is Rietveld 408576698