Added strong user ID generation that works in tor browser
This commit is contained in:
parent
59ea100c08
commit
3c4fc2bbc3
2
main.js
2
main.js
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user