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

This reverts commit 3e492a79ec.
This commit is contained in:
Eric Liang
2020-12-18 23:51:44 -08:00
committed by GitHub
parent a092433bc8
commit 5d987f5988
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.shake_128()
id_hash = hashlib.sha1()
id_hash.update(uuid.uuid4().bytes)
id_bytes = id_hash.digest(ray_constants.ID_SIZE)
id_bytes = id_hash.digest()
assert len(id_bytes) == ray_constants.ID_SIZE
return id_bytes