Skip to content

Commit 844e4b0

Browse files
committed
Re-apply c97e8d6 from tcard
1 parent bd32847 commit 844e4b0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/index.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function detectPrng() {
123123
return Math.random();
124124
};
125125
}
126-
throw createError("secure crypto unusable, insecure Math.random not allowedW");
126+
throw createError("secure crypto unusable, insecure Math.random not allowed");
127127
}
128128
function factory(currPrng) {
129129
if (!currPrng) {

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function detectPrng(allowInsecure = false, root) {
124124
catch (e) { }
125125
return () => Math.random();
126126
}
127-
throw createError("secure crypto unusable, insecure Math.random not allowedW");
127+
throw createError("secure crypto unusable, insecure Math.random not allowed");
128128
}
129129
export function factory(currPrng) {
130130
if (!currPrng) {

lib/index.umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function detectPrng() {
129129
return Math.random();
130130
};
131131
}
132-
throw createError("secure crypto unusable, insecure Math.random not allowedW");
132+
throw createError("secure crypto unusable, insecure Math.random not allowed");
133133
}
134134
function factory(currPrng) {
135135
if (!currPrng) {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function detectPrng(allowInsecure: boolean = false, root?: any): PRNG {
144144
return () => Math.random()
145145
}
146146

147-
throw createError("secure crypto unusable, insecure Math.random not allowedW")
147+
throw createError("secure crypto unusable, insecure Math.random not allowed")
148148
}
149149

150150
export function factory(currPrng?: PRNG): ULID {

0 commit comments

Comments
 (0)