Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: getRandomValues length is double so generate 12 bytes long hex

thecodrr89be1c2cd240
diff --git a/packages/core/utils/id.js b/packages/core/utils/id.js
index 7e394fc51..d64d92333 100644
--- a/packages/core/utils/id.js
+++ b/packages/core/utils/id.js
@@ -23,5 +23,5 @@ function cryptoRandom(size, type) {
}
export default function () {
- return cryptoRandom(24, "hex");
+ return cryptoRandom(12, "hex");
}