Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kakwa/ldapcherry
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jul 5, 2016
2 parents 9a5aa03 + 8c50313 commit 28479f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/static/js/lc-filler.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function lcMail(firstname, lastname, domain){
function lcUidNumber(firstname, lastname, minuid, maxuid){
var iminuid = parseInt(minuid);
var imaxuid = parseInt(maxuid);
return (parseInt('0x'+sha1(firstname+lastname)) % imaxuid) + iminuid;
return (parseInt('0x'+sha1(firstname+lastname)) % (imaxuid - iminuid)) + iminuid;
}

function lcHomeDir(firstname, lastname, basedir){
Expand Down

0 comments on commit 28479f7

Please sign in to comment.