diff options
author | Joshua Colp <jcolp@digium.com> | 2007-11-26 16:20:04 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-11-26 16:20:04 +0000 |
commit | 72a8e08bf515cc1a03a31180c197fbe6b81e743e (patch) | |
tree | 5a6705faa95555049d283196c9283c0e887b92bc | |
parent | 0b120dac62d8d1fa11c82677de1d6f7085f03d5a (diff) |
Revert change for 11348 until it can be looked at even more.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index afddae6bf..d40a74939 100644 --- 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 |