Skip to content

Commit

Permalink
v.1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ov-aviril committed Mar 16, 2024
1 parent 6071097 commit f6bafcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vstudio/vital.kit",
"version": "1.0.7",
"version": "1.0.8",
"author": "ᴏᴠ <[email protected]> (https://github.com/ov-studio)",
"private": false,
"license": "GPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/vid.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private.counter = 0
vKit.vid.create = () => {
var vid = false
while(!vid) {
const vvid = `${vKit.identifier}:${vKit.toBase64(vKit.crypto.getRandomValues(new Uint8Array(8)).join("") + (Date.now() + private.counter))}`
const vvid = vKit.crypto.createHash("sha256").update(`${vKit.identifier}:${vKit.toBase64(vKit.crypto.getRandomValues(new Uint8Array(8)).join("") + (Date.now() + private.counter))}`).digest("hex").toLowerCase()
if (vKit.vid.blacklist(vvid)) vid = vvid
private.counter += 1
}
Expand Down

0 comments on commit f6bafcb

Please sign in to comment.