Skip to content

Commit

Permalink
refactor(code.js): increate code length
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Oct 29, 2024
1 parent 888d6ff commit 25fad71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function computeHash(data, sub = 0) {
function generateCode(data) {
const datetime = new Date();
const dateString = datetime.toLocaleDateString();
return computeHash(`${dateString}_${data}`, 6);
return computeHash(`${dateString}_${data}`, 8);
}

module.exports = {
Expand Down

0 comments on commit 25fad71

Please sign in to comment.