Skip to content

Commit

Permalink
🐛 Omission of change
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnSky1010 committed Sep 19, 2024
1 parent 9fc75dc commit bd2f094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SoundMaker/Sounds/WaveTypes/LowBitNoiseWave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override short[] GenerateWave(SoundFormat format, int length, int volume,
var sound = (short)(height * volume / 100);
result.Add(sound);
}
height = (short)new Random().Next(0, short.MaxValue + 1);
height = (short)new Random().Next(short.MinValue, short.MaxValue + 1);
for (var i = 1; i <= allRepeatTimes - firstRepeatTimes && !mode && count <= length; i++, count++)
{
var sound = (short)(height * volume / 100);
Expand Down

0 comments on commit bd2f094

Please sign in to comment.