diff options
author | Alban Gruin | 2021-09-20 10:08:54 +0200 |
---|---|---|
committer | Alban Gruin | 2021-09-20 10:08:54 +0200 |
commit | 00cd66b16956a75a1c8dfb1f267b9a26603c09c7 (patch) | |
tree | 52dfe555af7de269518fcaed07420200bd04f7d2 /dune-project | |
parent | 9522c817654c435f1929f4a37961780346406cf7 (diff) |
ics, ucs: generate event IDs with a random number
Until now, ucs generated unique IDs with the datetime and the number of
an event, starting by 0. Unfortunately, if two calendars were generated
at the same second, they could have collisions. To avoid that, the ICS
generator now uses a base ID generated randomly, which should be enough
to avoid collisions. The RNG is self-initialised in the main function.
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'dune-project')
0 files changed, 0 insertions, 0 deletions