Merge pull request #912 from letsencrypt/rand

read fully from urandom
This commit is contained in:
Jacob Hoffman-Andrews 2015-10-03 22:16:23 -07:00
commit e3e748a192
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ func (ca *CertificateAuthorityImpl) IssueCertificate(csr x509.CertificateRequest
const randBits = 136
serialBytes := make([]byte, randBits/8+1)
serialBytes[0] = byte(ca.Prefix)
_, err = rand.Reader.Read(serialBytes[1:])
_, err = rand.Read(serialBytes[1:])
if err != nil {
err = core.InternalServerError(err.Error())
// AUDIT[ Error Conditions ] 9cc4d537-8534-4970-8665-4b382abe82f3