docx-validate
    Preparing search index...

    Function generateHexId

    • Generate an 8-digit hex id for w14:paraId / w16cid:durableId.

      [MS-OI29500] 2.6.2.3 types both as ST_LongHexNumber whose value MUST be greater than 0 and less than 0x80000000. The 1 + lower bound mirrors the repair path in validators/docx.ts (which seeds durableIds the same way) so we never write a zero or an over-cap id of our own. Range: [1, 0x7FFFFFFE], which also clears the tighter durableId cap of 0x7FFFFFFF.

      Returns string