##// END OF EJS Templates
revlogutils: unconditionally pass version to random seed...
Gregory Szorc -
r49764:0aae0e2e default
parent child Browse files
Show More
@@ -25,7 +25,6 b' from .. import ('
25 25 encoding,
26 26 error,
27 27 node,
28 pycompat,
29 28 util,
30 29 )
31 30
@@ -65,10 +64,7 b' if stable_docket_file:'
65 64 low_part = (int_seed & low_mask) << 28
66 65 int_seed = high_part + low_part + i
67 66 r = random.Random()
68 if pycompat.ispy3:
69 67 r.seed(int_seed, version=1)
70 else:
71 r.seed(int_seed)
72 68 # once we drop python 3.8 support we can simply use r.randbytes
73 69 raw = r.getrandbits(id_size * 4)
74 70 assert id_size == 8
General Comments 0
You need to be logged in to leave comments. Login now