mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-25 23:09:36 +03:00
use full dynamic range of rand() funtion
This commit is contained in:
parent
b31aafa4e4
commit
c27e045790
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user