Skip to content

Commit 62860c3

Browse files
author
4b796c65
committed
Fixed noise generator not seeding properly
1 parent a157950 commit 62860c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tdl/noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self, algorithm='PERLIN', mode='FLAT',
117117
self._dimensions = min(_MAX_DIMENSIONS, int(dimensions))
118118
if self._algorithm == 'WAVELET':
119119
self._dimensions = min(self._dimensions, 3) # Wavelet only goes up to 3
120-
self._random = _lib.TCOD_random_new_from_seed(self._seed, _MERSENNE_TWISTER)
120+
self._random = _lib.TCOD_random_new_from_seed(_MERSENNE_TWISTER, self._seed)
121121
self._hurst = ctypes.c_float(hurst)
122122
self._lacunarity = ctypes.c_float(lacunarity)
123123
self._noise = _lib.TCOD_noise_new(self._dimensions, self._hurst,

0 commit comments

Comments
 (0)