revert to random object
This commit is contained in:
parent
c7d10e2c7e
commit
60eca8b1f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user