mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Update crypto call for 16B02
This commit is contained in:
parent
7f329aff32
commit
885a98867e
@ -316,6 +316,6 @@ generate_bucket_name(Prefix) ->
|
||||
generate_string() ->
|
||||
%% stolen from riak_core_util:unique_id_62/0, but using 36 instead
|
||||
%% so as not to have to copy riak_core_util:integer_to_list
|
||||
Rand = crypto:sha(term_to_binary({make_ref(), os:timestamp()})),
|
||||
Rand = crypto:hash(sha, term_to_binary({make_ref(), os:timestamp()})),
|
||||
<<I:160/integer>> = Rand,
|
||||
list_to_binary(integer_to_list(I, 36)).
|
||||
|
Loading…
Reference in New Issue
Block a user