removed unneeded prng de/init
This commit is contained in:
parent
c8a0606ae5
commit
b93e412feb
1 changed files with 0 additions and 4 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue