1
0
Fork 0

Improve the random seed calculation slightly.

This commit is contained in:
david 2002-08-04 19:10:13 +00:00
parent 0c0b150661
commit 67fc66f82e

View file

@ -638,7 +638,7 @@ setup_triangle (float * p1, float * p2, float * p3,
data->branch = in_range; data->branch = in_range;
data->lon_deg = lon_deg; data->lon_deg = lon_deg;
data->lat_deg = lat_deg; data->lat_deg = lat_deg;
data->seed = (unsigned int)(p1[0] * i); data->seed = (unsigned int)((p1[0] + lon_deg + lat_deg) * i * 128);
// Set up the in-range node. // Set up the in-range node.
in_range->setUserData(data); in_range->setUserData(data);