projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b120da
)
Revert change for 11348 until it can be looked at even more.
author
Joshua Colp
<jcolp@digium.com>
Mon, 26 Nov 2007 16:20:04 +0000
(16:20 +0000)
committer
Joshua Colp
<jcolp@digium.com>
Mon, 26 Nov 2007 16:20:04 +0000
(16:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89582
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/utils.c
patch
|
blob
|
history
diff --git
a/main/utils.c
b/main/utils.c
index
afddae6
..
d40a749
100644
(file)
--- a/
main/utils.c
+++ b/
main/utils.c
@@
-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