Revert "Revert "Increase the number of unique bits for actors to avoi… (#12990)

This commit is contained in:
Eric Liang
2020-12-21 15:16:42 -08:00
committed by GitHub
parent 8b4b4bf0a2
commit 03a5b90ed6
21 changed files with 57 additions and 48 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