onionr/src/onionrcrypto/cryptoutils/randomshuffle.py

6 lines
141 B
Python
Raw Normal View History

from random import SystemRandom
2019-07-20 00:01:16 +00:00
def random_shuffle(theList):
myList = list(theList)
SystemRandom().shuffle(myList)
return myList