diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-30 21:34:49 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-10-30 21:34:49 -0400 |
commit | c306f4eab68ed5c084f993499a323cc98b480574 (patch) | |
tree | 05501c837d67d81a36fa157ee67f029b1f0e684d /src/scsi_id | |
parent | 25268b958a8d5cd703b2cd442004cbbee96043e0 (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.c | 2 |
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; |