1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Don't use !# in randomly-generated uuids.

This commit is contained in:
Alasdair Kergon 2003-09-15 14:58:43 +00:00
parent 89716a336b
commit 6a5b803539

View File

@ -73,8 +73,12 @@ int id_create(struct id *id)
}
close(randomfile);
/*
* Skip out the last 2 chars in randomized creation for LVM1
* backwards compatibility.
*/
for (i = 0; i < len; i++)
id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 1)];
id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];
return 1;
}