"vscode:/vscode.git/clone" did not exist on "b6e79d4abaf6d6c99aa4300305483eda6af8aadb"
Commit 84dda6a7 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

If seed <=1, then use time() to generate seed

parent 8c0b4073
......@@ -418,7 +418,7 @@ void CudaIntegrateLangevinStepKernel::initialize(const System& system, const Lan
// if LangevinIntegrator seed does not equal default value or is less than/equal to 0, then
// set gpu seed and redo random values
if( integrator.getRandomNumberSeed() < 1 ){
if( integrator.getRandomNumberSeed() <= 1 ){
_gpuContext* gpu = data.gpu;
gpu->seed = static_cast<unsigned long>( integrator.getRandomNumberSeed() );
gpuInitializeRandoms( gpu );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment