Skip to content

Make TRandom compatible with the std UniformRandomBitGenerator interface #7979

Open
@AntoniMarcinek

Description

@AntoniMarcinek

Hello,

This is a follow-up to the discussion on the Forum.

I realised that what I labelled myself as the solution indeed answers to the original problem, but does not solve my actual problem: I have an object of TRandom-derived class shared among several other objects and in one place I would like to wrap this object in the std UniformRandomBitGenerator interface or preferably use it directly. This cannot be done with TMVA::RandomGenerator because it holds its own instance of TRandom-like.

So maybe ROOT devs could consider adding the required typedef, 2 static methods and the operator() returning UInt directly to the base class (TRandom or ROOT::Math::TRandomEngine) to make it std library compatible out of the box?

Cheers,
Antoni

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions