From e0ba99b7f5b9f06dda7fe4baa8a7fb90e2ab40c8 Mon Sep 17 00:00:00 2001 From: tilghman Date: Wed, 5 Apr 2006 17:44:44 +0000 Subject: Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels/chan_local.c') diff --git a/channels/chan_local.c b/channels/chan_local.c index c0b571e45..63cf502cd 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -478,7 +478,7 @@ static struct local_pvt *local_alloc(char *data, int format) static struct ast_channel *local_new(struct local_pvt *p, int state) { struct ast_channel *tmp, *tmp2; - int randnum = rand() & 0xffff; + int randnum = ast_random() & 0xffff; tmp = ast_channel_alloc(1); tmp2 = ast_channel_alloc(1); -- cgit v1.2.3