By using the formula `(idx * prime) % range + 1`, tables created consecutively have start id distant by `prime` and the maximum start id is `range`. This avoid to overflow int4 when composing unique ID for table query. Closes #15010
trytond ======= The server of Tryton. Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security.