We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd19703 commit e901641Copy full SHA for e901641
src/modules/finance/index.ts
@@ -719,12 +719,12 @@ export class FinanceModule {
719
litecoinAddress(): string {
720
const addressLength = this.faker.number.int({ min: 26, max: 33 });
721
722
- let address = this.faker.helpers.arrayElement(['L', 'M', '3']);
723
-
724
- for (let i = 0; i < addressLength - 1; i++)
725
- address += this.faker.helpers.arrayElement([
726
- ...'123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ',
727
- ]);
+ const address =
+ this.faker.string.fromCharacters('LM3') +
+ this.faker.string.fromCharacters(
+ '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ',
+ addressLength - 1
+ );
728
729
return address;
730
}
0 commit comments