Skip to content

Commit

Permalink
Merge pull request #3 from kounoike/pr/maxuidnumber
Browse files Browse the repository at this point in the history
maxuid is not 'max' in lcUidNumber
  • Loading branch information
kakwa committed Jun 19, 2016
2 parents c67969e + 268c8f9 commit 8c50313
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 8c50313

Please sign in to comment.