mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-08-30 01:45:45 +01:00
btoa expects a string argument, so when passing it the ArrayBuffer object returned by getRandomBytes(), it's converted to a string by calling .toString() on it. This always results in "[object ArrayBuffer]", effectively resulting in a completely non-random password.