tickle/modules/utils/getReasonableUuid.mjs

12 lines
269 B
JavaScript
Raw Normal View History

2023-06-07 16:51:18 +00:00
//@ts-check
/**
* A reasonably unique id.
* Deterministic, it will always return the same id for the same call order
*/
export const getReasonableUuid = (() => {
let start = 100000000;
return () => (start++).toString(36);
})();
export default getReasonableUuid