mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-20 06:54:38 +00:00
Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@666 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+1
-1
@@ -910,7 +910,7 @@ uint64_t gen_dev_id_num(const struct vdisk_dev *dev)
|
||||
{
|
||||
unsigned int dev_id_num, i;
|
||||
|
||||
for (dev_id_num = 0, i = 0; i < (int)strlen(dev->name); i++) {
|
||||
for (dev_id_num = 0, i = 0; i < strlen(dev->name); i++) {
|
||||
unsigned int rv = random_values[(int)(dev->name[i])];
|
||||
/* do some rotating of the bits */
|
||||
dev_id_num ^= ((rv << i) | (rv >> (32 - i)));
|
||||
|
||||
Reference in New Issue
Block a user