Skip to content

Commit

Permalink
Merge pull request #38 from iFixit/scope--make-it-more-random
Browse files Browse the repository at this point in the history
Scope: make key more random
  • Loading branch information
danielbeardsley authored Apr 1, 2024
2 parents 75210a5 + 0be62c1 commit e11f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/iFixit/Matryoshka/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getScopePrefix(bool $reset = false) {
if ($this->scopePrefix === null || $reset) {
$scopeValue = $this->backend->getAndSet($this->getScopeKey(),
function() {
return substr(md5(microtime() . $this->scopeName), 0, 8);
return substr(md5(microtime() . $this->scopeName), 0, 16);
}, 0, $reset);

$this->scopePrefix = "{$scopeValue}-";
Expand Down

0 comments on commit e11f9b0

Please sign in to comment.