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

Unified Diff: sdk/lib/io/http_session.dart

Issue 13686005: WebSocket: Correctly expect masked frames from clients, and send masked frames from the client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « sdk/lib/io/common.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_session.dart
diff --git a/sdk/lib/io/http_session.dart b/sdk/lib/io/http_session.dart
index 4cde1be778c842bb38133702306fb94c06f90f80..2b7e16452f3945eb00f40a35eac0082ab8044c74 100644
--- a/sdk/lib/io/http_session.dart
+++ b/sdk/lib/io/http_session.dart
@@ -72,7 +72,7 @@ class _HttpSessionManager {
String createSessionId() {
const int _KEY_LENGTH = 16; // 128 bits.
- var data = _getRandomBytes(_KEY_LENGTH);
+ var data = _IOCrypto.getRandomBytes(_KEY_LENGTH);
return CryptoUtils.bytesToHex(data);
}
@@ -172,7 +172,5 @@ class _HttpSessionManager {
_HttpSession _head;
_HttpSession _tail;
Timer _timer;
-
- external static Uint8List _getRandomBytes(int count);
}
« no previous file with comments | « sdk/lib/io/common.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698