cmd/hakurei: short identifier from lower half

The upper half is now a nanosecond timestamp. Lower half is still random bytes, so use lower half for short identifier.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-10-24 00:47:39 +09:00
parent 2442eda8d9
commit 7de593e816
5 changed files with 195 additions and 36 deletions

View File

@@ -301,7 +301,7 @@ func buildCommand(ctx context.Context, msg message.Msg, early *earlyHardeningErr
case 1: // instance
name := args[0]
config, entry := tryShort(msg, name)
config, entry := tryIdentifier(msg, name)
if config == nil {
config = tryPath(msg, name)
}