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 11``` javascript --hide
2- import crypto from ' crypto' ;
2+ import crypto from ' node: crypto' ;
33
44runmd .onRequire = (path ) => {
55 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' ;
22
33function md5 ( bytes : Uint8Array ) {
44 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' ;
22
33export default { randomUUID } ;
Original file line number Diff line number Diff line change 1- import { randomFillSync } from 'crypto' ;
1+ import { randomFillSync } from 'node: crypto' ;
22
33const rnds8Pool = new Uint8Array ( 256 ) ; // # of random values to pre-allocate
44let poolPtr = rnds8Pool . length ;
Original file line number Diff line number Diff line change 1- import { createHash } from 'crypto' ;
1+ import { createHash } from 'node: crypto' ;
22
33function sha1 ( bytes : Uint8Array ) {
44 if ( Array . isArray ( bytes ) ) {
You can’t perform that action at this time.
0 commit comments