Make gitGraph commit IDs out of hexadecimal chars

This commit is contained in:
Miika Kankare 2020-06-24 09:28:58 +03:00
parent e13662dd2c
commit 955ccfae88
1 changed files with 1 additions and 1 deletions

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));