Skip to content

Commit

Permalink
Don't use deprecated boost::uniform_real
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed May 24, 2024
1 parent 317d9ff commit 0edd43d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TransformMover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <IMP/core/XYZ.h>
#include <IMP/random.h>
#include <IMP/algebra/vector_generators.h>
#include <boost/random/uniform_real_distribution.hpp>

IMPPMI1_BEGIN_NAMESPACE

TransformMover::TransformMover(Model *m,
Expand Down Expand Up @@ -88,7 +90,7 @@ core::MonteCarloMoverResult TransformMover::do_propose() {

axis_=(d2.get_coordinates()-d1.get_coordinates()).get_unit_vector();}

::boost::uniform_real<> rand(-max_angle_, max_angle_);
::boost::random::uniform_real_distribution<> rand(-max_angle_, max_angle_);
Float angle = rand(random_number_generator);
algebra::Rotation3D r = algebra::get_rotation_about_axis(axis_, angle);
algebra::Transformation3D t_(r, translation);
Expand Down

0 comments on commit 0edd43d

Please sign in to comment.