Merge pull request #1496 from polarsquad/fix-git-commit-id

Make gitGraph commit IDs out of hexadecimal chars
This commit is contained in:
Knut Sveidqvist
2020-07-12 11:22:19 +02:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ let seq = 0;
function makeid(length) {
var result = '';
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var characters = '0123456789abcdef';
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));