Skip to content

Commit 15f816e

Browse files
authored
Merge pull request #23 from 327/master
Update Nonce Generating methods
2 parents ef38d6e + 7610a91 commit 15f816e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue/Driver/CMQClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function build_req_inter($action, $params, &$req_inter)
9999
}
100100

101101
if (!isset($_params['Nonce'])) {
102-
$_params['Nonce'] = rand(1, 65535);
102+
$_params['Nonce'] = (int)(microtime(TRUE) * 1000) + rand(500000, 100000000);
103103
}
104104

105105
if (!isset($_params['Timestamp'])) {

0 commit comments

Comments
 (0)