summaryrefslogtreecommitdiff
path: root/src/scsi_id
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-30 21:34:49 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-10-30 21:34:49 -0400
commitc306f4eab68ed5c084f993499a323cc98b480574 (patch)
tree05501c837d67d81a36fa157ee67f029b1f0e684d /src/scsi_id
parent25268b958a8d5cd703b2cd442004cbbee96043e0 (diff)
util: unify how we see srand()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/scsi_id')
-rw-r--r--src/scsi_id/scsi_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scsi_id/scsi_serial.c b/src/scsi_id/scsi_serial.c
index 1806498503..3e30aed419 100644
--- a/src/scsi_id/scsi_serial.c
+++ b/src/scsi_id/scsi_serial.c
@@ -865,7 +865,7 @@ int scsi_get_serial(struct udev *udev,
int retval;
memzero(dev_scsi->serial, len);
- srand((unsigned int)getpid());
+ initialize_srand();
for (cnt = 20; cnt > 0; cnt--) {
struct timespec duration;