8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c14e24 commit fe3373fCopy full SHA for fe3373f
pydra/engine/tests/test_submitter.py
@@ -1,8 +1,7 @@
1
from dateutil import parser
2
-import random
+import secrets
3
import re
4
import subprocess as sp
5
-import struct
6
import time
7
import attrs
8
import typing as ty
@@ -595,11 +594,10 @@ class Unstable:
595
594
596
def __bytes_repr__(self, cache) -> ty.Iterator[bytes]:
597
"""Random 128-bit bytestring"""
598
- yield random.randbytes(16)
+ yield secrets.token_bytes(16)
599
600
@mark.task
601
def unstable_input(unstable: Unstable) -> int:
602
- time.sleep(1) # Ensure the timestamp changes during the task run
603
return unstable.value
604
605
task = unstable_input(unstable=Unstable(1))
0 commit comments