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

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 changes 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..7ba60863c2bc06fd648bc883882d74468c6bff99 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. crypto/ relies on this.
uint64 RandUint64() {
uint32 first_half = RandUint32();
uint32 second_half = RandUint32();
« base/rand_util_posix.cc ('K') | « base/rand_util_posix.cc ('k') | crypto/crypto.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698