Revert change for 11348 until it can be looked at even more.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89582 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
43aebe686f
commit
60d6d5e6e4
1 changed files with 1 additions and 1 deletions
|
@ -1140,7 +1140,7 @@ long int ast_random(void)
|
|||
int read_res = read(dev_urandom_fd, &res, sizeof(res));
|
||||
if (read_res > 0) {
|
||||
res = res < 0 ? ~res : res;
|
||||
return res % ((long)RAND_MAX + 1);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Reference in a new issue