MCPcopy Create free account
hub / github.com/ElementsProject/elements / AddPath

Function AddPath

src/randomenv.cpp:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void AddPath(CSHA512& hasher, const char *path)
156{
157 struct stat sb = {};
158 if (stat(path, &sb) == 0) {
159 hasher.Write((const unsigned char*)path, strlen(path) + 1);
160 hasher << sb;
161 }
162}
163#endif
164
165#if HAVE_SYSCTL

Callers 1

RandAddStaticEnvFunction · 0.85

Calls 2

statClass · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected