fix bug."head -c" in function _ali_nonce not supported by solaris

This commit is contained in:
lc 2016-11-23 14:47:37 +08:00
parent 645de061e9
commit 70d71c991a

View File

@ -105,7 +105,7 @@ _ali_urlencode() {
} }
_ali_nonce() { _ali_nonce() {
cat /dev/urandom | _head_n 1 | _digest "sha256" hex | cut -c 1-31 < /dev/urandom | _head_n 1 | _digest "sha256" hex | cut -c 1-31
} }
_check_exist_query() { _check_exist_query() {