File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ signature has changed (now it has two optional boolean arguments: `ignore_spaces
86
86
(it now makes use of the new extracted method ` asciify() ` )
87
87
- ` is_uuid() ` has now a second parameter ` allow_hex ` that if true, considers as valid UUID hex value
88
88
- ` uuid() ` has now an optional boolean parameter ` as_hex ` which allows to return UUID string as hex representation
89
+ - ` shuffle() ` is now faster
89
90
90
91
---
91
92
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ def shuffle(input_string: str) -> str:
370
370
raise InvalidInputError (input_string )
371
371
372
372
# turn the string into a list of chars
373
- chars = sorted (input_string )
373
+ chars = list (input_string )
374
374
375
375
# shuffle the list
376
376
random .shuffle (chars )
You can’t perform that action at this time.
0 commit comments