Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuCh3n committed Apr 12, 2023
2 parents 7a5e9be + e7a78e3 commit e5b016a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"ext-fileinfo": "*",
"monolog/monolog": "^2.2",
"guzzlehttp/guzzle": "^7.0",
"composer/ca-bundle": "^1.3"
"composer/ca-bundle": "^1.3",
"ramsey/uuid": "^4.7"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.*",
Expand Down
3 changes: 2 additions & 1 deletion src/Handlers/HMAC/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Buckaroo\Handlers\HMAC;

use Buckaroo\Config\Config;
use Ramsey\Uuid\Uuid;

class Generator extends Hmac
{
Expand Down Expand Up @@ -67,7 +68,7 @@ public function __construct(Config $config, $data, $uri, $method = 'POST')

$this->base64Data($data);
$this->uri($uri);
$this->nonce('nonce_' . rand(0000000, 9999999));
$this->nonce(Uuid::uuid4());
$this->time(time());
}

Expand Down

0 comments on commit e5b016a

Please sign in to comment.