Skip to content

crypto: adjust types for getRandomValues

Fixes: https://github.com/nodejs/node/issues/41480

Prevents Web Crypto API's getRandomValues from accepting DataView

WIP/draft at this moment.

I'm not sure if new DataView(buf.buffer) in this test was intentional: https://github.com/nodejs/node/blob/6b7b0b72887b5050b71ea7eca940e3eac2bb9a07/test/parallel/test-webcrypto-random.js#L47-L53

Merge request reports

Loading