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 (grafted from f730392a270138148ed62366cf7f35a7cc01a8b6) --HG-- branch : 8.0
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.