diff --git a/src/leveled_codec.erl b/src/leveled_codec.erl index 5303180..f08e2e9 100644 --- a/src/leveled_codec.erl +++ b/src/leveled_codec.erl @@ -74,8 +74,7 @@ %% %% Hash function contains mysterious constants, some explanation here as to %% what they are - -%% http://stackoverflow.com/ ++ -%% questions/10696223/reason-for-5381-number-in-djb-hash-function +%% http://stackoverflow.com/questions/10696223/reason-for-5381-number-in-djb-hash-function magic_hash({?RIAK_TAG, Bucket, Key, _SubKey}) -> magic_hash({Bucket, Key}); diff --git a/src/leveled_skiplist.erl b/src/leveled_skiplist.erl index 142afc5..7fcc81a 100644 --- a/src/leveled_skiplist.erl +++ b/src/leveled_skiplist.erl @@ -598,7 +598,7 @@ skiplist_timingtest(KL, SkipList, N, Bloom) -> case Bloom of true -> HashList = lists:map(fun(_X) -> - random:uniform(4296967295) end, + random:uniform(4294967295) end, lists:seq(1, 2000)), SWh = os:timestamp(), lists:foreach(fun(X) ->