Skip to content

Commit

Permalink
fix: shared analyzer github worfklow
Browse files Browse the repository at this point in the history
  • Loading branch information
itsezlife committed May 21, 2024
1 parent e965918 commit 9d53b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/shared/lib/src/config/uid.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore: public_member_api_docs, override_on_non_overriding_member

import 'dart:math';
import 'dart:typed_data';

Expand All @@ -10,7 +12,9 @@ final uuid = UuidGenerator._();

/// Unique user id generator
class UuidGenerator {
/// {@macro uuid_generator}
UuidGenerator._();

final _uuid = Uuid(goptions: GlobalOptions(CryptoRNG._()));

/// Generate random id based on [Uuid] library
Expand All @@ -22,6 +26,7 @@ class UuidGenerator {
/// strong.
/// {@endtemplate}
class CryptoRNG extends RNG {
/// {@macro crypto_rng}
CryptoRNG._({
Random? secureRandom,
}) : _secureRandom = secureRandom ?? Random.secure();
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
app_ui:
Expand Down

0 comments on commit 9d53b1a

Please sign in to comment.