Index: webkit/glue/webkitclient_impl.cc |
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc |
index b2dd53a8279319f8bad668f21d4af2adc6521d09..882cb426fa7abdd2cb6042545a52904270d4dbfe 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)()) { |