summaryrefslogtreecommitdiff
path: root/src/cdrom_id/cdrom_id.c
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/cdrom_id/cdrom_id.c
parent25268b958a8d5cd703b2cd442004cbbee96043e0 (diff)
util: unify how we see srand()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/cdrom_id/cdrom_id.c')
-rw-r--r--src/cdrom_id/cdrom_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdrom_id/cdrom_id.c b/src/cdrom_id/cdrom_id.c
index 9b3ab7021e..e13657b495 100644
--- a/src/cdrom_id/cdrom_id.c
+++ b/src/cdrom_id/cdrom_id.c
@@ -925,7 +925,7 @@ int main(int argc, char *argv[])
goto exit;
}
- srand((unsigned int)getpid());
+ initialize_srand();
for (cnt = 20; cnt > 0; cnt--) {
struct timespec duration;