Unique Node Identifier in Integer Format

I’m working with an old piece of software that requires a unique identifier in an integer format, e.g. 1, 2, 101, 102 that can’t be over 4096. The consul node ids would fulfill the need except they are uuids and the software won’t accept that. Is there any way I can have consul assign unique ids to the nodes that would adhere to a certain format?