removed unneeded prng de/init

This commit is contained in:
Valerie Wolfe 2024-03-06 20:03:19 -05:00
parent c8a0606ae5
commit b93e412feb

View file

@ -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");