revert to random object

This commit is contained in:
incrementby1
2021-11-29 20:35:43 +01:00
committed by GitHub
parent c7d10e2c7e
commit 60eca8b1f1

View File

@@ -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