diff options
| author | Shinigami <[email protected]> | 2022-05-01 15:22:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-01 13:22:39 +0000 |
| commit | c093e4c300a5566faafc85289d2588742db25c5d (patch) | |
| tree | 4e30ceff4ae4008004652dbf1c24e19b16f1d9c5 /src/git.ts | |
| parent | 1851ecab1e33b6266bb4b4614c814a7674099d01 (diff) | |
| download | faker-c093e4c300a5566faafc85289d2588742db25c5d.tar.xz faker-c093e4c300a5566faafc85289d2588742db25c5d.zip | |
refactor: move some random methods to helpers (#892)
Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'src/git.ts')
| -rw-r--r-- | src/git.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -110,7 +110,7 @@ export class Git { let commit = ''; for (let i = 0; i < 40; i++) { - commit += this.faker.random.arrayElement(this.hexChars); + commit += this.faker.helpers.arrayElement(this.hexChars); } return commit; @@ -126,7 +126,7 @@ export class Git { let shortSha = ''; for (let i = 0; i < 7; i++) { - shortSha += this.faker.random.arrayElement(this.hexChars); + shortSha += this.faker.helpers.arrayElement(this.hexChars); } return shortSha; |
