Skip to content
Snippets Groups Projects
Commit 6754b586 authored by Robert Lehmann's avatar Robert Lehmann Committed by Robert Lehmann
Browse files

remarked hash function's utility

parent 60e2345f
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,8 @@ public class RedisClient extends DB {
/* Calculate a hash for a key to store it in an index. The actual return
* value of this function is not interesting -- it primarily needs to be
* fast and scattered along the whole space of doubles.
* fast and scattered along the whole space of doubles. In a real world
* scenario one would probably use the ASCII values of the keys.
*/
private double hash(String key) {
return key.hashCode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment