crypto.randomBytes is not a function

I am trying to use the speakeasy package that depends on node:crypto By the looks of it the supported crypto version does not have crypto.randomBytes() implemented Should I implement my own or is this something that you will be supporting in the future?
2 Replies
kian
kian15mo ago
Crypto: getRandomValues() method - Web APIs | MDN
The Crypto.getRandomValues() method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
kian
kian15mo ago
randomBytes is Node specific
Want results from more Discord servers?
Add your server