File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
``` javascript --hide
2
- import crypto from ' crypto' ;
2
+ import crypto from ' node: crypto' ;
3
3
4
4
runmd .onRequire = (path ) => {
5
5
if (path == ' rng' ) return fun;
Original file line number Diff line number Diff line change 1
- import { createHash } from 'crypto' ;
1
+ import { createHash } from 'node: crypto' ;
2
2
3
3
function md5 ( bytes : Uint8Array ) {
4
4
if ( Array . isArray ( bytes ) ) {
Original file line number Diff line number Diff line change 1
- import { randomUUID } from 'crypto' ;
1
+ import { randomUUID } from 'node: crypto' ;
2
2
3
3
export default { randomUUID } ;
Original file line number Diff line number Diff line change 1
- import { randomFillSync } from 'crypto' ;
1
+ import { randomFillSync } from 'node: crypto' ;
2
2
3
3
const rnds8Pool = new Uint8Array ( 256 ) ; // # of random values to pre-allocate
4
4
let poolPtr = rnds8Pool . length ;
Original file line number Diff line number Diff line change 1
- import { createHash } from 'crypto' ;
1
+ import { createHash } from 'node: crypto' ;
2
2
3
3
function sha1 ( bytes : Uint8Array ) {
4
4
if ( Array . isArray ( bytes ) ) {
You can’t perform that action at this time.
0 commit comments