aboutsummaryrefslogtreecommitdiff
path: root/src/server.mli
diff options
context:
space:
mode:
authorAlban Gruin2021-09-20 10:08:54 +0200
committerAlban Gruin2021-09-20 10:08:54 +0200
commit00cd66b16956a75a1c8dfb1f267b9a26603c09c7 (patch)
tree52dfe555af7de269518fcaed07420200bd04f7d2 /src/server.mli
parent9522c817654c435f1929f4a37961780346406cf7 (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 'src/server.mli')
0 files changed, 0 insertions, 0 deletions