mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
force generated serial #'s to always be positive
This commit is contained in:
parent
9503a9fdca
commit
ed9266b577
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user