uatuko / ruek

🔐 Lightning fast, global scale authorization service without the overhead of a yet another DSL.
Apache License 2.0
95 stars 7 forks source link

Use a random integer as the starting value for 'rev' #112

Closed uatuko closed 1 month ago

uatuko commented 1 month ago

When rev starts at 0, there's a possibility that records could get overwritten unintentionally if there's an ID conflict. This change starts the rev at a random integer to reduce the likelihood of this happening.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.88%. Comparing base (9a98d53) to head (25c8df4). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #112 +/- ## ========================================== + Coverage 93.50% 93.88% +0.37% ========================================== Files 20 21 +1 Lines 1401 1406 +5 Branches 168 168 ========================================== + Hits 1310 1320 +10 + Misses 65 59 -6 - Partials 26 27 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.