Minor fixes
*Seed is uint instead of int *Permutation table is uint instead of int, could lead before to program crash with negative seeds Former-commit-id: 49ad04987a09a5f5b4bcab6ee3916db9818172b6
This commit is contained in:
@@ -45,7 +45,7 @@ NzSimplex4D::NzSimplex4D()
|
||||
gradient4[i][j] = grad4Temp[i][j];
|
||||
}
|
||||
|
||||
NzSimplex4D::NzSimplex4D(int seed) : NzSimplex4D()
|
||||
NzSimplex4D::NzSimplex4D(unsigned int seed) : NzSimplex4D()
|
||||
{
|
||||
this->SetNewSeed(seed);
|
||||
this->ShufflePermutationTable();
|
||||
|
||||
Reference in New Issue
Block a user