aboutsummaryrefslogtreecommitdiff
path: root/lib/git.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git.js')
-rw-r--r--lib/git.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/git.js b/lib/git.js
index 1cf9121d..d431ea2d 100644
--- a/lib/git.js
+++ b/lib/git.js
@@ -6,6 +6,8 @@ var Git = function(faker) {
var self = this;
var f = faker.fake;
+ var hexChars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
+
/**
* branch
*
@@ -58,7 +60,7 @@ var Git = function(faker) {
var commit = "";
for (var i = 0; i < 40; i++) {
- commit += faker.random.alphaNumeric();
+ commit += faker.random.arrayElement(hexChars);
}
return commit;
@@ -73,7 +75,7 @@ var Git = function(faker) {
var shortSha = "";
for (var i = 0; i < 7; i++) {
- shortSha += faker.random.alphaNumeric();
+ shortSha += faker.random.arrayElement(hexChars);
}
return shortSha;