From b93e412feb8275cefbc641f6e0b6f9719f134952 Mon Sep 17 00:00:00 2001 From: Valerie Date: Wed, 6 Mar 2024 20:03:19 -0500 Subject: [PATCH] removed unneeded prng de/init --- src/Program.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Program.cs b/src/Program.cs index 6dd8bbe..4373915 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -12,15 +12,11 @@ if(!Directory.Exists(resourcePath)) { // pull file list var files = Directory.GetFiles(resourcePath, "*.txt"); -var prng = RandomNumberGenerator.Create(); - // choose a file and line var file = files[RandomNumberGenerator.GetInt32(files.Length)]; var lines = File.ReadAllLines(file); var line = lines[RandomNumberGenerator.GetInt32(lines.Length)]; -prng.Dispose(); - // process escape codes line = line.Replace("\\n", "\n");