Closed CMCDragonkai closed 1 year ago
this is meant to be used with browserify or webpack which provide those buffers
@calvinmetcalf Webpack 5 removed buffer so it should have a fallback https://github.com/webpack/changelog-v5/issues/10
Duplicate of https://github.com/browserify/randombytes/issues/21
The browser.js uses safe-buffer package as the implementation of Buffer.
However safe-buffer doesn't supply a browser polyfill for buffer, it just uses the Node buffer.
So how is browser.js going to work in browsers?
Shouldn't it instead use the Buffer polyfill? https://github.com/feross/buffer