diff --git a/src/backend/app/db/postgis_utils.py b/src/backend/app/db/postgis_utils.py index b01dbf6116..19b8129b0e 100644 --- a/src/backend/app/db/postgis_utils.py +++ b/src/backend/app/db/postgis_utils.py @@ -20,8 +20,8 @@ import json import logging from datetime import datetime, timezone -from typing import Optional, Union from random import getrandbits +from typing import Optional, Union import geojson import requests @@ -386,7 +386,7 @@ def add_required_geojson_properties( else: # Random id # NOTE 32-bit int is max supported by standard postgres Integer - properties["osm_id"] = getrandbits(32) + properties["osm_id"] = getrandbits(30) # Other required fields if not properties.get("tags"):