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

View File

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