mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-639 Create better random numbers.
X-SVN-Rev: 7319
This commit is contained in:
parent
250fd0c22d
commit
7584fb6a96
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ double IntlTestDateFormat::randDouble()
|
|||
}
|
||||
// While this is not a real normalized number make another one.
|
||||
} while (uprv_isNaN(d) || uprv_isInfinite(d)
|
||||
|| !((-DBL_MAX < d && d < DBL_MAX) || (-DBL_MIN < d && d < DBL_MIN)));
|
||||
|| !((-DBL_MAX < d && d < DBL_MAX) || (d < -DBL_MIN && DBL_MIN < d)));
|
||||
return d;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue