priobike / priobike-flutter-app

A smartphone app for cyclists in Hamburg that provides bike navigation and speed advisories for traffic lights
MIT License
6 stars 0 forks source link

Don't use Darts UniqueKeys for Session and User IDs as they are not really made for uniqueness across multiple devices and sessions #665

Closed adeveloper-wq closed 2 months ago

adeveloper-wq commented 3 months ago

They are too short (5 hexadecimal numbers (possible values ranging from 0 to F)). Therefore 16*16*16*16*16 = 1.048.576 values are possible. Even if we don't reach such an amount of sessions, there is the chance that duplicate IDs are generated resulting in problems in our backend.