diff options
-rw-r--r-- | source4/lib/messaging/messaging.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 9c337f65a5..80812c2885 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -663,7 +663,8 @@ struct imessaging_context *imessaging_client_init(TALLOC_CTX *mem_ctx, { 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); } /* |