force generated serial #'s to always be positive

This commit is contained in:
ian.mcgreer%sun.com 2002-01-15 01:53:11 +00:00
parent 9503a9fdca
commit ed9266b577

View File

@ -2504,7 +2504,8 @@ main(int argc, char **argv)
!certutil.options[opt_SerialNumber].activated) {
/* Make a default serial number from the current time. */
PRTime now = PR_Now();
serialNumber = LL_L2UI(serialNumber, now);
serialNumber = LL_L2I(serialNumber, now);
if (serialNumber < 0) serialNumber *= -1;
}
/* Validation needs the usage to validate for. */