Skip to content

Commit 82a47df

Browse files
authored
Use crypto:strong_rand_bytes/1 instead of rand:bytes/1
This because we still have CI target from before OTP-24
1 parent 38aeb4d commit 82a47df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gen_smtp_server_session.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3250,7 +3250,7 @@ smtp_session_binarymime_test_() ->
32503250
{tcp, CSock, Packet4} -> smtp_socket:active_once(CSock)
32513251
end,
32523252
?assertMatch("250 " ++ _, Packet4),
3253-
RandomBytes = rand:bytes(32),
3253+
RandomBytes = crypto:strong_rand_bytes(32),
32543254
smtp_socket:send(CSock, "BDAT 72\r\n"),
32553255
smtp_socket:send(CSock, "Subject: tls message\r\n"),
32563256
smtp_socket:send(CSock, "To: <user@otherhost>\r\n"),

0 commit comments

Comments
 (0)