MCPcopy Create free account
hub / github.com/Gecode/gecode / seed

Method seed

gecode/kernel/data/rnd.hpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 };
107
108 forceinline unsigned int
109 Rnd::IMP::seed(void) const {
110 unsigned int s;
111 const_cast<Rnd::IMP&>(*this).m.acquire();
112 s = rg.seed();
113 const_cast<Rnd::IMP&>(*this).m.release();
114 return s;
115 }
116 forceinline void
117 Rnd::IMP::seed(unsigned int s) {
118 m.acquire();

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected