File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -162,14 +162,7 @@ export default class {
162
162
return this . stringWithBytes ( randomBytes ( bytesNeeded ) , bitLen , charset )
163
163
}
164
164
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 ) {
173
166
return stringWithBytes ( bytes , bitLen , charset )
174
167
}
175
168
Original file line number Diff line number Diff line change @@ -448,10 +448,6 @@ test('PRNG', (t) => {
448
448
string = entropy . stringPRNG ( 64 , charset16 )
449
449
t . is ( typeof string , 'string' )
450
450
t . is ( string . length , 16 )
451
-
452
- string = entropy . stringRandom ( )
453
- t . is ( typeof string , 'string' )
454
- t . is ( string . length , 26 )
455
451
} )
456
452
457
453
test ( 'Invalid bits' , ( t ) => {
You can’t perform that action at this time.
0 commit comments