More code styling fixes

This commit is contained in:
DarthAffe committed 2023-12-27 15:48:20 +01:00
1 parent d85f1559b3
commit aeab93001f
8 files changed
+25 -23

No files matched your search

@@ -66,7 +66,7 @@ public static class SimplexNoise
else
{
_perm = new byte[512];
Random random = new Random(value);
Random random = new(value);
random.NextBytes(_perm);
}
@@ -281,7 +281,8 @@ public static class SimplexNoise
private static byte[] _perm;
private static readonly byte[] PermOriginal = {
private static readonly byte[] PermOriginal =
[
151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
@@ -308,7 +309,7 @@ public static class SimplexNoise
251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107,
49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254,
138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180
};
];
private static int FastFloor(float x)
{