View Single Post
Old 10-26-2016, 11:41 AM   #22
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,869
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi All,

FYI, using a uuid to create a manifest id is just a quick and dirty way of generating a probabilistically unique id for a single epub (it need not be unique outside of this epub). If need be we simply prepend any non-numeric character and we are okay. I will prepend with an 'x'.

If we replace first character with a hex char in the a-f range you are reducing the probabilistic space by a factor of 5 / 16 (there are only 5 possible values for the first char, instead of the 16 expected.

For inside the epub use (ie manifest ids) we simply prepend an a character if need be.

As Doitsu pointed out, there are other places where generating a probabilistically unique id in an exact uuid format is needed and I do not want to confuse the two nor limit its space of possible values as any change will increase the likelihood of an external collision (no matter how small).

I will fix this tonight when I get out of work and get a free minute.

Thanks,

KevinH
KevinH is online now   Reply With Quote