Increase the number of unique bits for actors to avoid handle collisions (#12894)

This commit is contained in:
Eric Liang
2020-12-18 15:59:03 -08:00
committed by GitHub
parent 3521e74f3a
commit 3e492a79ec
19 changed files with 54 additions and 54 deletions
+2 -2
View File
@@ -50,9 +50,9 @@ def get_ray_temp_dir():
def _random_string():
id_hash = hashlib.sha1()
id_hash = hashlib.shake_128()
id_hash.update(uuid.uuid4().bytes)
id_bytes = id_hash.digest()
id_bytes = id_hash.digest(ray_constants.ID_SIZE)
assert len(id_bytes) == ray_constants.ID_SIZE
return id_bytes