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 40220c4 commit c3937eeCopy full SHA for c3937ee
redisvl/redis/utils.py
@@ -43,6 +43,6 @@ def buffer_to_array(buffer: bytes, dtype: Any = np.float32) -> List[float]:
43
def hashify(content: str, extras: Optional[Dict[str, Any]] = None) -> str:
44
"""Create a secure hash of some arbitrary input text and optional dictionary."""
45
if extras:
46
- extra_string = " ".join([str(k) + str(v) for k, v in extras.items()])
+ extra_string = " ".join([str(k) + str(v) for k, v in sorted(extras.items())])
47
content = content + extra_string
48
return hashlib.sha256(content.encode("utf-8")).hexdigest()
0 commit comments