aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_multipart.erl
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2016-06-08 10:15:14 +0800
committerLeo Liu <[email protected]>2016-06-08 10:16:49 +0800
commita7d5141d13c8944867c9361e544981d9954728c4 (patch)
tree7bf30ebdab195c052450595b7f4793d30e49e0f5 /src/cow_multipart.erl
parent8645a8f197b186f4e376bcd3753c5b019830dca8 (diff)
downloadcowlib-a7d5141d13c8944867c9361e544981d9954728c4.tar.gz
cowlib-a7d5141d13c8944867c9361e544981d9954728c4.tar.bz2
cowlib-a7d5141d13c8944867c9361e544981d9954728c4.zip
Fix #39: Prefer crypto:strong_rand_bytes/1
See also https://github.com/erlang/otp/pull/883
Diffstat (limited to 'src/cow_multipart.erl')
-rw-r--r--src/cow_multipart.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cow_multipart.erl b/src/cow_multipart.erl
index 276a689..3cbef56 100644
--- a/src/cow_multipart.erl
+++ b/src/cow_multipart.erl
@@ -424,7 +424,7 @@ horse_parse() ->
-spec boundary() -> binary().
boundary() ->
- base64:encode(crypto:rand_bytes(48)).
+ base64:encode(crypto:strong_rand_bytes(48)).
%% @doc Return the first part's head.
%%