Changeset 91510 in webkit
- Timestamp:
- Jul 21, 2011, 2:53:12 PM (14 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r91456 r91510 1 2011-07-20 Cris Neckar <cdn@chromium.org> 2 3 Hook v8 up to cryptographicallyRandomValues as an entropy source. 4 https://bugs.webkit.org/show_bug.cgi?id=64887 5 6 Reviewed by Adam Barth. 7 8 * src/WebKit.cpp: 9 (WebKit::generateEntropy): 10 (WebKit::initialize): 11 1 12 2011-07-21 Vsevolod Vlasov <vsevik@chromium.org> 2 13 -
trunk/Source/WebKit/chromium/src/WebKit.cpp
r89390 r91510 38 38 #include "TextEncoding.h" 39 39 #include "V8Binding.h" 40 #include "WebKitClient.h" 40 41 #include "WebMediaPlayerClientImpl.h" 41 42 #include "WebSocket.h" … … 55 56 static WebKitClient* s_webKitClient = 0; 56 57 static bool s_layoutTestMode = false; 58 59 static bool generateEntropy(unsigned char* buffer, size_t length) 60 { 61 if (s_webKitClient) { 62 s_webKitClient->cryptographicallyRandomValues(buffer, length); 63 return true; 64 } 65 return false; 66 } 57 67 58 68 void initialize(WebKitClient* webKitClient) … … 78 88 WebCore::UTF8Encoding(); 79 89 90 v8::V8::SetEntropySource(&generateEntropy); 80 91 v8::V8::Initialize(); 81 92 WebCore::V8BindingPerIsolateData::ensureInitialized(v8::Isolate::GetCurrent());
Note:
See TracChangeset
for help on using the changeset viewer.