We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ae618b commit 4016c99Copy full SHA for 4016c99
LazySchoolboyUtil/Util.cs
@@ -14,13 +14,14 @@ public static class Util
14
public static void GenerateFile(string path, int size, Format format)
15
{
16
progress = 0;
17
+
18
byte[] bytesToBeSaved = new byte[size];
19
20
rand.GetBytes(bytesToBeSaved);
21
22
for (int i = format.GetOffset(); i <= format.GetOffset() + format.GetMagicNumbers().Length - 1; i++)
23
- progress = i / (format.GetMagicNumbers().LongLength / 100);
24
+ progress = (double)i / ((double)format.GetMagicNumbers().Length / (double)100);
25
bytesToBeSaved[i] = format.GetMagicNumbers()[i - format.GetOffset()];
26
}
27
0 commit comments