Pete Cordell pete@TECH-KNOW-WARE.COM writes:
The default behaviour of the compiler we use was not to make it a huge value. We've now included something which makes it treat it as a huge value. If the directive specified is standard then perhaps we should include it in the ASN.1. It is in the form of a comment so presumably compilers that don't understand it will skip it. This should improve interoperability, which, after all, is what standards are all about (or should be!). At least it could be in the implementor's guide.
A not-so-industry-standard solution is to define RandomVal and ranInt<Params as OCTET STRINGs.
The bit pattern on line does not change, however, one must take into account the byte sex (if you have a little-endian processor) and the sign when doing calculations on the RandomVal.
Pekka Pessi