Correct Mistyped 2 ^ 32
This commit is contained in:
parent
f96d148073
commit
4b48ed14c6
2 changed files with 2 additions and 3 deletions
|
@ -74,8 +74,7 @@
|
||||||
%%
|
%%
|
||||||
%% Hash function contains mysterious constants, some explanation here as to
|
%% Hash function contains mysterious constants, some explanation here as to
|
||||||
%% what they are -
|
%% what they are -
|
||||||
%% http://stackoverflow.com/ ++
|
%% http://stackoverflow.com/questions/10696223/reason-for-5381-number-in-djb-hash-function
|
||||||
%% questions/10696223/reason-for-5381-number-in-djb-hash-function
|
|
||||||
|
|
||||||
magic_hash({?RIAK_TAG, Bucket, Key, _SubKey}) ->
|
magic_hash({?RIAK_TAG, Bucket, Key, _SubKey}) ->
|
||||||
magic_hash({Bucket, Key});
|
magic_hash({Bucket, Key});
|
||||||
|
|
|
@ -598,7 +598,7 @@ skiplist_timingtest(KL, SkipList, N, Bloom) ->
|
||||||
case Bloom of
|
case Bloom of
|
||||||
true ->
|
true ->
|
||||||
HashList = lists:map(fun(_X) ->
|
HashList = lists:map(fun(_X) ->
|
||||||
random:uniform(4296967295) end,
|
random:uniform(4294967295) end,
|
||||||
lists:seq(1, 2000)),
|
lists:seq(1, 2000)),
|
||||||
SWh = os:timestamp(),
|
SWh = os:timestamp(),
|
||||||
lists:foreach(fun(X) ->
|
lists:foreach(fun(X) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue