Skip to content

Commit

Permalink
chore: node:crypto -> crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jun 19, 2024
1 parent 0b4bb1a commit 8e287d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/md5.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHash } from 'node:crypto';
import { createHash } from 'crypto';

function md5(bytes: Uint8Array) {
if (Array.isArray(bytes)) {
Expand Down
2 changes: 1 addition & 1 deletion src/native.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { randomUUID } from 'node:crypto';
import { randomUUID } from 'crypto';

export default { randomUUID };
2 changes: 1 addition & 1 deletion src/rng.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { randomFillSync } from 'node:crypto';
import { randomFillSync } from 'crypto';

const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
let poolPtr = rnds8Pool.length;
Expand Down
2 changes: 1 addition & 1 deletion src/sha1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createHash } from 'node:crypto';
import { createHash } from 'crypto';

function sha1(bytes: Uint8Array) {
if (Array.isArray(bytes)) {
Expand Down

0 comments on commit 8e287d5

Please sign in to comment.