You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like to see a major update where Uint8Array is returned instead on both node and browser.
Buffer is unnecessary in many cases where it's just seen as a Uint8Array. And where many node core feature is more acceptable of typed arrays instead
So including Buffer (safe-buffer) in the browser is just bloated and unnecessary.
Think if ppl need a Buffer then they should use Buffer.from(randombytes(1)) instead.
@jimmywarting I understand your reasoning, but I don't think we want to broaden the scope of this package when it should always produce the same output and types as node.
Unfortunately this package is called randombytes, and not @browserify/randombytes, but, it's likely package scopes weren't available when the project started.
Activity
dcousens commentedon Jul 26, 2023
safe-bufferhas been removed in #27dcousens commentedon Jul 26, 2023
@jimmywarting I understand your reasoning, but I don't think we want to broaden the scope of this package when it should always produce the same output and types as
node.Unfortunately this package is called
randombytes, and not@browserify/randombytes, but, it's likely package scopes weren't available when the project started.