Added strong user ID generation that works in tor browser

This commit is contained in:
Kevin F 2022-11-22 03:44:08 +00:00
parent 59ea100c08
commit 3c4fc2bbc3
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const { createApp } = Vue
let app = createApp({ let app = createApp({
computed: { computed: {
randomID: () => { randomID: () => function(){
let buf2hex = function(buffer) { // buffer is an ArrayBuffer let buf2hex = function(buffer) { // buffer is an ArrayBuffer
return [...new Uint8Array(buffer)] return [...new Uint8Array(buffer)]
.map(x => x.toString(16).padStart(2, '0')) .map(x => x.toString(16).padStart(2, '0'))