axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2C-1009) Generated Random Number Equals 1 if the difference in range of axutil_rand_with_range() is 1
Date Mon, 03 Mar 2008 06:32:50 GMT

     [ https://issues.apache.org/jira/browse/AXIS2C-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Senaka Fernando resolved AXIS2C-1009.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: Current (Nightly)

Fixed Issue

> Generated Random Number Equals 1 if the difference in range of axutil_rand_with_range()
is 1
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1009
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1009
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 1.3.0
>            Reporter: Senaka Fernando
>            Assignee: Senaka Fernando
>             Fix For: Current (Nightly)
>
>
> Generated Random Number Equals 1 if the difference in range of axutil_rand_with_range()
is 1. To fix this,
> rand = 1 + (int) (range * rand / (AXIS2_RAND_MAX + 1.0)); should be replaced by, rand
= start + (int) (range * rand / (AXIS2_RAND_MAX + 1.0));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message