diff options
Diffstat (limited to 'tests/pr_pl_gradient_check.c')
-rw-r--r-- | tests/pr_pl_gradient_check.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/pr_pl_gradient_check.c b/tests/pr_pl_gradient_check.c index f603fff0..5ef01bf5 100644 --- a/tests/pr_pl_gradient_check.c +++ b/tests/pr_pl_gradient_check.c @@ -3,11 +3,11 @@ * * Check partiality gradients for post refinement * - * Copyright © 2012-2013 Deutsches Elektronen-Synchrotron DESY, + * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * * Authors: - * 2012-2013 Thomas White <taw@physics.org> + * 2012-2014 Thomas White <taw@physics.org> * * This file is part of CrystFEL. * @@ -399,6 +399,7 @@ int main(int argc, char *argv[]) int quiet = 0; int plot = 0; int c; + gsl_rng *rng; const struct option longopts[] = { {"quiet", 0, &quiet, 1}, @@ -449,12 +450,14 @@ int main(int argc, char *argv[]) deg2rad(90.0), deg2rad(90.0)); + rng = gsl_rng_alloc(gsl_rng_mt19937); + for ( i=0; i<1; i++ ) { UnitCell *rot; double val; - orientation = random_quaternion(); + orientation = random_quaternion(rng); rot = cell_rotate(cell, orientation); crystal_set_cell(cr, rot); @@ -514,5 +517,7 @@ int main(int argc, char *argv[]) } + gsl_rng_free(rng); + return fail; } |