summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-28 17:44:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-28 17:44:03 -0700
commit2c46444c13ed355f0499530943c8f5f27a60224b (patch)
treeb6c728139a5bc591651e6f007efa40418fe9f9be
parentc65965a41fca0f0b1dc894415a5fb3457a5af3f5 (diff)
downloadranpwd.git.old-2c46444c13ed355f0499530943c8f5f27a60224b.tar.gz
ranpwd.git.old-2c46444c13ed355f0499530943c8f5f27a60224b.tar.xz
ranpwd.git.old-2c46444c13ed355f0499530943c8f5f27a60224b.zip
uuid's need a dash after the 10th octet, too.
-rw-r--r--ranpwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranpwd.c b/ranpwd.c
index 1c4aea2..5fa1cc0 100644
--- a/ranpwd.c
+++ b/ranpwd.c
@@ -325,6 +325,7 @@ static void output_random(enum output_type type, int nchar, int decor)
getrandom(&ch, 1);
switch (ichar-nchar) {
case 4:
+ case 10:
putchar('-');
break;
case 6: