revert to random object
This commit is contained in:
@@ -28,6 +28,8 @@ class ShuffleFilter(IPairList):
|
||||
self._seed = pairlistconfig.get('seed')
|
||||
logger.info(f"Backtesting mode detected, applying seed value: {self._seed}")
|
||||
|
||||
self._random = random.Random(self._seed)
|
||||
|
||||
@property
|
||||
def needstickers(self) -> bool:
|
||||
"""
|
||||
@@ -53,7 +55,6 @@ class ShuffleFilter(IPairList):
|
||||
:return: new whitelist
|
||||
"""
|
||||
# Shuffle is done inplace
|
||||
random.seed(self._seed)
|
||||
random.shuffle(pairlist)
|
||||
self._random.shuffle(pairlist)
|
||||
|
||||
return pairlist
|
||||
|
Reference in New Issue
Block a user