Dan Mercer
Dan Mercer2y ago

How to generate random base64 in mutation

TS Playground - An online editor for exploring TypeScript and JavaS...
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
3 Replies
lee
lee2y ago
thanks for reporting! i found the bug on our side and should ship the fix on monday. i'm not sure if you can implement base64-encoding with TextEncoder -- might that work? hmm i don't see how to make that work. maybe until we deploy the fix, you could create a slightly-less-random key, with values from 0 to 127? sorry about this. string encoding is tricky.
Dan Mercer
Dan MercerOP2y ago
Awesome, thanks!! I can use a dumbed-down key generator for now, so no rush 👍
lee
lee2y ago
i ran your function in my own app and it seems to work now 🙂

Did you find this page helpful?