summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-28 17:42:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-28 17:42:49 -0700
commitc65965a41fca0f0b1dc894415a5fb3457a5af3f5 (patch)
treef52bded233f77de4a8ec852064039409b39a7216
parentc57ec7f4b3d2f2d1c31fc5be50b3b60f633aec06 (diff)
downloadranpwd.git.old-c65965a41fca0f0b1dc894415a5fb3457a5af3f5.tar.gz
ranpwd.git.old-c65965a41fca0f0b1dc894415a5fb3457a5af3f5.tar.xz
ranpwd.git.old-c65965a41fca0f0b1dc894415a5fb3457a5af3f5.zip
Actually add the documented -G option
-rw-r--r--ranpwd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranpwd.c b/ranpwd.c
index 6feecfd..1c4aea2 100644
--- a/ranpwd.c
+++ b/ranpwd.c
@@ -412,6 +412,10 @@ int main(int argc, char *argv[])
type = ty_uuid;
nchar = 16;
break;
+ case 'G': /* UUID/GUID */
+ type = ty_uuuid;
+ nchar = 16;
+ break;
case 's': /* Use /dev/random, not /dev/urandom */
secure_source = 1;
break;