MCPcopy Create free account
hub / github.com/crownengine/crown / init

Function init

src/core/guid.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#endif
27
28 void init()
29 {
30#if CROWN_PLATFORM_POSIX
31 _fd = ::open("/dev/urandom", O_RDONLY);
32 CE_ASSERT(_fd != -1, "open: errno = %d", errno);
33#endif
34 }
35
36 void shutdown()
37 {

Callers 15

test_memoryFunction · 0.70
test_arrayFunction · 0.70
test_vectorFunction · 0.70
test_hash_mapFunction · 0.70
test_hash_setFunction · 0.70
test_string_idFunction · 0.70
test_dynamic_stringFunction · 0.70
test_string_viewFunction · 0.70
test_guidFunction · 0.70
test_jsonFunction · 0.70
test_sjsonFunction · 0.70
test_filesystemFunction · 0.70

Calls 1

openFunction · 0.85

Tested by 15

test_memoryFunction · 0.56
test_arrayFunction · 0.56
test_vectorFunction · 0.56
test_hash_mapFunction · 0.56
test_hash_setFunction · 0.56
test_string_idFunction · 0.56
test_dynamic_stringFunction · 0.56
test_string_viewFunction · 0.56
test_guidFunction · 0.56
test_jsonFunction · 0.56
test_sjsonFunction · 0.56
test_filesystemFunction · 0.56