Skip to main content

Module ids

Module ids 

Source
Expand description

Ids given to what is made (docs/database.md, “The format of what travels”): a money line, a split, a preset, a time session. Your devices merge each by its id (sioul_sync::share, format 2), so that two the same stay two, and one changed on two devices stays one.

128 bits, random, as the sharing’s own ids are, shaped as a UUID (version 4): two halves hashed by keys the system draws at random for this process (RandomState, as everywhere::new_id does), over the time, a counter and the process. Nothing of what the id names is in it.

Functions§

new
A new id: “1c0e5d2a-…-4…”, never the same twice.