mirror of
https://github.com/Hill-98/aliyun-openapi-bash-sdk.git
synced 2025-10-22 18:09:33 +08:00
Enhanced SignatureNonce Uniqueness
This commit is contained in:
@@ -99,6 +99,13 @@ _aliapi_timestamp_rpc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_aliapi_signature_nonce() {
|
_aliapi_signature_nonce() {
|
||||||
|
local nonce=""
|
||||||
|
if [[ -f /proc/sys/kernel/random/uuid ]]; then
|
||||||
|
nonce=$(</proc/sys/kernel/random/uuid)
|
||||||
|
else
|
||||||
|
nonce=$(date "+%s%N")
|
||||||
|
fi
|
||||||
|
echo "$RANDOM${nonce//-/}$RANDOM"
|
||||||
}
|
}
|
||||||
|
|
||||||
_aliapi_urlencode() {
|
_aliapi_urlencode() {
|
||||||
|
Reference in New Issue
Block a user