use full dynamic range of rand() funtion

This commit is contained in:
Krishna Vedala 2020-04-09 15:50:34 -04:00
parent b31aafa4e4
commit c27e045790
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -113,7 +113,7 @@ int main(int argc, char **argv)
/* initialize root approximations with random values */
if (n < degree - 1)
{
s0[n] = get_rand(coeffs[n]) + get_rand(coeffs[n]) * I;
s0[n] = (long double)rand() + (long double)rand() * I;
#if defined(DEBUG) || !defined(NDEBUG)
fprintf(log_file, "root_%d,", n);
#endif