Skip to content
Snippets Groups Projects
Commit c5abd3bf authored by Enrico Guiraud's avatar Enrico Guiraud Committed by Danilo Piparo
Browse files

[TDF] Fix tdf008_createDataSetFromScratch

parent 62b719bb
Branches
Tags
No related merge requests found
......@@ -13,8 +13,8 @@ void tdf008_createDataSetFromScratch()
ROOT::Experimental::TDataFrame tdf(100);
// We now fill it with random numbers
gRandom.SetSeed(1);
auto tdf_1 = tdf.Define("rnd", [&rnd]() { return gRandom->Gaus(); });
gRandom->SetSeed(1);
auto tdf_1 = tdf.Define("rnd", []() { return gRandom->Gaus(); });
// And we write out the dataset on disk
tdf_1.Snapshot("randomNumbers", "tdf008_createDataSetFromScratch.root");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment