1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "DataFormats/TestObjects/interface/StreamTestThing.h"
#include <algorithm>
#include <cstdlib>
namespace {
struct Setter {
~Setter() {}
Setter() { srand(1011); }
};
} // namespace
namespace edmtestprod {
StreamTestThing::~StreamTestThing() {}
StreamTestThing::StreamTestThing() : data_() {}
StreamTestThing::StreamTestThing(int sz) : data_(sz) {
static Setter junker;
generate(data_.begin(), data_.end(), rand);
}
} // namespace edmtestprod
|