fix(emqx_mgmt_auth): better randomisation of app secrets
change from timestamp seeded hash (uuid) to crypto:strong_rand_bytes
This commit is contained in:
parent
0a16c9fabf
commit
5ecc427dce
|
@ -182,4 +182,5 @@ trans(Fun) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
generate_api_secret() ->
|
generate_api_secret() ->
|
||||||
emqx_guid:to_base62(emqx_guid:gen()).
|
Random = crypto:strong_rand_bytes(32),
|
||||||
|
emqx_base62:encode(Random).
|
||||||
|
|
Loading…
Reference in New Issue