aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-09-13 14:10:31 +0200
committerThomas White <taw@physics.org>2024-09-13 14:10:31 +0200
commit9ee4e12518d634457c53fd203ec886a2d89524af (patch)
tree7705984f30ce29db4e41e04919266929f2631ab6
parentbc550ef57cded8c98833f0978de112113cd5ea23 (diff)
peakfinder8: Don't call srand(0)
It was an attempt to make the random behaviour reproducible, but unfortunately it affects the whole program. Including the frame selection in the GUI!
-rw-r--r--libcrystfel/src/peakfinder8.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c
index 1def35d3..28bee8d7 100644
--- a/libcrystfel/src/peakfinder8.c
+++ b/libcrystfel/src/peakfinder8.c
@@ -141,7 +141,6 @@ static struct radial_stats_pixels *compute_rstats_pixels(struct radius_maps *rma
cffree(rsp);
return NULL;
}
- srand(0);
int n_pixels_per_bin = 100; // Can make this a parameter