denoland / node_shims

npm packages providing shims for the Deno namespace and other globals. Useful for running Deno-first programs on Node.
MIT License
149 stars 29 forks source link

crypto.getRandomValues doesn't exist #57

Closed dsherret closed 2 years ago

dsherret commented 2 years ago

It has also been in node.js since v15.

npm/src/util.ts:60:21 - error TS2339: Property 'getRandomValues' does not exist on type 'typeof webcrypto'.

60     denoShim.crypto.getRandomValues(new Uint8Array(256)),
                       ~~~~~~~~~~~~~~~

https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues

Closes #56

dsherret commented 2 years ago

Closing as duplicate of #56