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

Unified Diff: base/rand_util_posix.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_posix.cc
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc
index abb404a09965449f165ba1f4039eafd0ed176eab..e46a6fc4d381656384883596ed7766db3bb8fda9 100644
--- a/base/rand_util_posix.cc
+++ b/base/rand_util_posix.cc
@@ -41,6 +41,7 @@ base::LazyInstance<URandomFd> g_urandom_fd = LAZY_INSTANCE_INITIALIZER;
namespace base {
+// NOTE: This function must be cryptographically secure: crbug.com/140076
akalin 2012/08/02 07:01:12 end with a period. Prefix with http:// (so it lin
uint64 RandUint64() {
uint64 number;
« no previous file with comments | « base/rand_util.h ('k') | base/rand_util_win.cc » ('j') | base/rand_util_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698