diff options
author | pasta <pasta@dashboost.org> | 2022-01-31 19:29:33 +0700 |
---|---|---|
committer | pasta <pasta@dashboost.org> | 2022-03-23 17:36:33 -0500 |
commit | 3ae7791bcaa88f5c68592673b8926ee807242ce7 (patch) | |
tree | a3c9f0be42e9082a9047f26d4eecb65b441e39a8 /src/rpc/request.cpp | |
parent | cea230eec40054a82fcd31fa97cf46f1585c4a35 (diff) | |
download | bitcoin-3ae7791bcaa88f5c68592673b8926ee807242ce7.tar.xz |
refactor: use Span in random.*
Diffstat (limited to 'src/rpc/request.cpp')
-rw-r--r-- | src/rpc/request.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/request.cpp b/src/rpc/request.cpp index 95a7c25b93..d0e068de19 100644 --- a/src/rpc/request.cpp +++ b/src/rpc/request.cpp @@ -82,7 +82,7 @@ bool GenerateAuthCookie(std::string *cookie_out) { const size_t COOKIE_SIZE = 32; unsigned char rand_pwd[COOKIE_SIZE]; - GetRandBytes(rand_pwd, COOKIE_SIZE); + GetRandBytes(rand_pwd); std::string cookie = COOKIEAUTH_USER + ":" + HexStr(rand_pwd); /** the umask determines what permissions are used to create this file - |