summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authorqsr@google.com <qsr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-05 08:46:11 +0000
committerqsr@google.com <qsr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-05 08:46:11 +0000
commit51a018181c93b3c190146432805836155d69effa (patch)
treea9ed7d4a2acdbfad83f4c3063250ef283b15405b /webkit/glue
parent1817055ea2667eda23f5d53d623b3a547a7d19ee (diff)
downloadchromium_src-51a018181c93b3c190146432805836155d69effa.zip
chromium_src-51a018181c93b3c190146432805836155d69effa.tar.gz
chromium_src-51a018181c93b3c190146432805836155d69effa.tar.bz2
Move crypto_helpers from sync to crypto
crypto_helpers only depends on resources in base and is used by sync and password_manager. BUG= TEST= Review URL: http://codereview.chromium.org/6873156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webkitclient_impl.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index b2dd53a..882cb42 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -451,13 +451,7 @@ double WebKitClientImpl::currentTime() {
void WebKitClientImpl::cryptographicallyRandomValues(
unsigned char* buffer, size_t length) {
- uint64 bytes = 0;
- for (size_t i = 0; i < length; ++i) {
- size_t offset = i % sizeof(bytes);
- if (!offset)
- bytes = base::RandUint64();
- buffer[i] = reinterpret_cast<unsigned char*>(&bytes)[offset];
- }
+ base::RandBytes(buffer, length);
}
void WebKitClientImpl::setSharedTimerFiredFunction(void (*func)()) {