Project

General

Profile

Bug #15851

Test PropTest uses non-reproducible random stream

Added by Gianluca Petrillo over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/13/2017
Due date:
% Done:

0%

Estimated time:
Duration:

Description

The module PropTest (uboonecode/test/RecoObjects/PropTest_module.cc) uses C random functions to extract the initial state of the test.
This makes it... hard to reproduce a failure.

Since this is a art test module, the recommended solution is to use the standard RandomNumberGenerator service (and, why not? NuRandomService with autoIncrement policy, or at least not perEvent, nor random).

History

#1 Updated by Gianluca Petrillo over 2 years ago

A solution following the recommended prescription has been published as branch feature/gp_Issue15851 of uboonecode.
The relevant commit is 48eedfec32dd96945f4a2602023b1f116df9191e .

NOTE: with the changes in the feature branch, the test PropTest will fail. Because I deliberately picked a random seed that triggers a failure. The underlying code requires fix.



Also available in: Atom PDF