Skip to content

Commit 91e3f0b

Browse files
committed
Remove deprecated method
1 parent 62c03f6 commit 91e3f0b

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

lib/entropy.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,7 @@ export default class {
162162
return this.stringWithBytes(randomBytes(bytesNeeded), bitLen, charset)
163163
}
164164

165-
/**
166-
* @deprecated Since version 3.1. Will be deleted in version 4.0. Use stringPRNG instead.
167-
*/
168-
stringRandom(bitLen = propMap.get(this).bitLen, charset = propMap.get(this).charset) {
169-
return this.stringPRNG(bitLen, charset)
170-
}
171-
172-
stringWithBytes(bytes, bitLen, charset = propMap.get(this).charset) {
165+
stringWithBytes(bytes, bitLen = propMap.get(this).bitLen, charset = propMap.get(this).charset) {
173166
return stringWithBytes(bytes, bitLen, charset)
174167
}
175168

test/entropy.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ test('PRNG', (t) => {
448448
string = entropy.stringPRNG(64, charset16)
449449
t.is(typeof string, 'string')
450450
t.is(string.length, 16)
451-
452-
string = entropy.stringRandom()
453-
t.is(typeof string, 'string')
454-
t.is(string.length, 26)
455451
})
456452

457453
test('Invalid bits', (t) => {

0 commit comments

Comments
 (0)