Skip to content

Commit

Permalink
examples: import time so shuffle examples run under python3
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Mar 25, 2019
1 parent 72dee96 commit b3dc4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/badshuffle.py
@@ -1,6 +1,7 @@
#!/usr/bin/python3

import random
import time

random.seed(time.monotonic())

Expand Down
1 change: 1 addition & 0 deletions examples/goodshuffle.py
@@ -1,6 +1,7 @@
#!/usr/bin/python3

import random
import time

random.seed(time.monotonic())

Expand Down

0 comments on commit b3dc4b5

Please sign in to comment.