diff options
author | mniknami@chromium.org <mniknami@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 20:22:25 +0000 |
---|---|---|
committer | mniknami@chromium.org <mniknami@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 20:22:25 +0000 |
commit | 9b2057825d45aab8c753c5764228f8e8a069e470 (patch) | |
tree | 5a64a7de6c123f4548b9ee7e3cb312db8dfa7779 /base/rand_util_posix.cc | |
parent | bebe1d02eb8b14a6e7db2cce1a6d13f556a5390f (diff) | |
download | chromium_src-9b2057825d45aab8c753c5764228f8e8a069e470.zip chromium_src-9b2057825d45aab8c753c5764228f8e8a069e470.tar.gz chromium_src-9b2057825d45aab8c753c5764228f8e8a069e470.tar.bz2 |
Added crypto random-number generator
Added a cryptographic random-number generator to crypto/.
Modified sync to use this function instead.
May also be used by Cloud Print in the future.
Review URL: https://chromiumcodereview.appspot.com/10698177
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util_posix.cc')
-rw-r--r-- | base/rand_util_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc index abb404a..d65ddae 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. http://crbug.com/140076 uint64 RandUint64() { uint64 number; |