mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7585 Multi Lateral Well Adjustments : Fix random orientation fishbones
This commit is contained in:
parent
ce881aecb5
commit
3d3d787bd8
@ -37,6 +37,7 @@
|
||||
#include "cvfBoundingBox.h"
|
||||
#include "cvfMath.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <random>
|
||||
@ -746,7 +747,8 @@ void RimFishbones::computeSubLateralIndices()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RimFishbones::randomValueFromRange( int min, int max )
|
||||
{
|
||||
std::default_random_engine generator;
|
||||
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
|
||||
std::minstd_rand0 generator( seed );
|
||||
std::uniform_int_distribution<int> distribution( min, max );
|
||||
return distribution( generator );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user