mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-12 16:17:24 +01:00
3d7db4dbc3
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.