Skip to content

Commit

Permalink
use secure random number generator (#334) (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrad authored Apr 4, 2024
1 parent 19d82db commit ced3a37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.5

* use secure random number generator for frame masking.

## 2.4.4

* Require Dart `^3.3`
Expand Down
2 changes: 1 addition & 1 deletion lib/src/copy/web_socket_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import 'web_socket.dart';

const String webSocketGUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';

final _random = Random();
final _random = Random.secure();

// Matches _WebSocketOpcode.
class _WebSocketMessageType {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: web_socket_channel
version: 2.4.4
version: 2.4.5
description: >-
StreamChannel wrappers for WebSockets. Provides a cross-platform
WebSocketChannel API, a cross-platform implementation of that API that
Expand Down

0 comments on commit ced3a37

Please sign in to comment.