aboutsummaryrefslogtreecommitdiff
path: root/src/git.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-05-01 15:22:39 +0200
committerGitHub <[email protected]>2022-05-01 13:22:39 +0000
commitc093e4c300a5566faafc85289d2588742db25c5d (patch)
tree4e30ceff4ae4008004652dbf1c24e19b16f1d9c5 /src/git.ts
parent1851ecab1e33b6266bb4b4614c814a7674099d01 (diff)
downloadfaker-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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/git.ts b/src/git.ts
index c1d02147..c0c98062 100644
--- a/src/git.ts
+++ b/src/git.ts
@@ -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;