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
{
struct server_id id;
ZERO_STRUCT(id);
- id.pid = random() % 0x10000000;
+ id.pid = generate_random() % 0x10000000;
+
return imessaging_init(mem_ctx, lp_ctx, id, ev, true);
}
/*