Remove deprecated crypto:sha/1 in favor of crypto:hash/2.
This commit is contained in:
parent
e0ea7f2504
commit
982a7b6be3
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ open_test_db() ->
|
|||
?cmd("rm -rf " ++ DataDir),
|
||||
?assertMatch(ok, filelib:ensure_dir(filename:join([DataDir, "x"]))),
|
||||
{ok, Handle} = ?MODULE:open(DataDir, 2147483648),
|
||||
[?MODULE:upd(Handle, crypto:sha(<<X>>),
|
||||
[?MODULE:upd(Handle, crypto:hash(sha, <<X>>),
|
||||
crypto:rand_bytes(crypto:rand_uniform(128, 4096))) ||
|
||||
X <- lists:seq(1, 10)],
|
||||
Handle.
|
||||
|
|
Loading…
Reference in a new issue