diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-06-23 00:00:14 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-06-23 00:00:14 -0400 |
commit | 3ece960188d478d71a880339dba70407a5d0f034 (patch) | |
tree | bc2596afc91526b4f768238fc1e0b5fd267c0462 /lib/rand.c | |
parent | 701cde10f6a43a4d0c3409e1a9bde74040baee22 (diff) | |
download | fuse_networks-3ece960188d478d71a880339dba70407a5d0f034.tar.gz fuse_networks-3ece960188d478d71a880339dba70407a5d0f034.tar.bz2 fuse_networks-3ece960188d478d71a880339dba70407a5d0f034.zip |
ran clang-format
Diffstat (limited to 'lib/rand.c')
-rw-r--r-- | lib/rand.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -2,14 +2,14 @@ #include "fracture.h" long double rand_dist_pow(const gsl_rng *r, double beta) { - long double x = 0; + long double x = 0; - // underflow means that for very small beta x is sometimes identically zero, - // which causes problems - while (x == 0.0) { - long double y = logl(gsl_rng_uniform_pos(r)) / beta; - x = expl(y); - } + // underflow means that for very small beta x is sometimes identically zero, + // which causes problems + while (x == 0.0) { + long double y = logl(gsl_rng_uniform_pos(r)) / beta; + x = expl(y); + } - return x; + return x; } |