correct issue #14: fix NCName with non-numeric character prefix

This commit is contained in:
Rainer Hörbe 2017-08-10 23:00:35 +02:00 committed by GitHub
parent 3e509b8e09
commit 0c16bc9473

View file

@ -52,7 +52,7 @@ SAML.prototype.initialize = function(options) {
SAML.prototype.generateUniqueID = function() {
const chars = 'abcdef0123456789';
let uniqueID = '';
let uniqueID = 'id-';
for (let i = 0; i < 20; i++) {
uniqueID += chars.substr(Math.floor((Math.random() * 15)), 1);
}