s4-messaging: Use generate_random() to get a unique ID for messaging clients
commitb8055132b1c62dd19981fea2822ab9e1829a8ded
authorAndrew Bartlett <abartlet@samba.org>
Wed, 25 Apr 2012 07:53:18 +0000 (25 17:53 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Apr 2012 09:43:40 +0000 (25 11:43 +0200)
tree582519dd1afa5220badf790c390738b9def40996
parente346bba1fc369cc13438cf3882961ef7b11ccc3a
s4-messaging: Use generate_random() to get a unique ID for messaging clients

The call to random() resulted in duplicate values for s3fs configurations
which, due to the forked child, all started with the same random seed.

A future improvement would be to move to a proven unique value.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 25 11:43:40 CEST 2012 on sn-devel-104
source4/lib/messaging/messaging.c