Fix unused param in a private ctor lint (dart-lang/yaml_edit#99)

diff --git a/pkgs/yaml_edit/test/random_test.dart b/pkgs/yaml_edit/test/random_test.dart
index 60b197d..85cea4a 100644
--- a/pkgs/yaml_edit/test/random_test.dart
+++ b/pkgs/yaml_edit/test/random_test.dart
@@ -17,8 +17,7 @@
 /// inputs (boolean, null, strings, or numbers) to modify the YAML and assert
 /// that the change produced was expected.
 void main() {
-  const seed = 0;
-  final generator = _Generator(seed: seed);
+  final generator = _Generator(maxDepth: 5);
 
   const roundsOfTesting = 40;
   const modificationsPerRound = 1000;
@@ -66,7 +65,7 @@
   final int maxDepth;
 
   // ignore: unused_element
-  _Generator({int? seed, this.maxDepth = 5}) : r = Random(seed ?? 42);
+  _Generator({int seed = 0, required this.maxDepth}) : r = Random(seed);
 
   int nextInt([int max = maxInt]) => r.nextInt(max);