Searched refs:xos (Results 1 – 8 of 8) sorted by relevance
/third_party/libwebsockets/lib/misc/ |
D | prng.c | 37 lws_xos(struct lws_xos *xos) in lws_xos() argument 39 uint64_t *s = &xos->s[0]; in lws_xos() 68 lws_xos_init(struct lws_xos *xos, uint64_t seed) in lws_xos_init() argument 73 xos->s[n] = splitmix64(&seed); in lws_xos_init() 77 lws_xos_percent(struct lws_xos *xos, int percent) in lws_xos_percent() argument 79 return (int)(lws_xos(xos) % 100) < percent; in lws_xos_percent()
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_dsh/ |
D | main.c | 257 lws_xos_t xos; in test5() local 262 lws_xos_init(&xos, 0x123456789abcdef0ull); in test5() 264 budget = (unsigned int)(lws_xos(&xos) % 4000) + 4000; in test5() 282 if (lws_xos_percent(&xos, 60)) { in test5() 285 size = (size_t)((lws_xos(&xos) & 127) + 1); in test5() 291 if (lws_xos_percent(&xos, 80)) { in test5() 294 size = (size_t)((lws_xos(&xos) & 127) + 1); in test5() 300 if (lws_xos_percent(&xos, 40)) { in test5() 309 if (lws_xos_percent(&xos, 30)) { in test5()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-fault-injection.h | 40 lws_xos_init(struct lws_xos *xos, uint64_t seed); 52 lws_xos(struct lws_xos *xos); 65 lws_xos_percent(struct lws_xos *xos, int percent); 89 struct lws_xos xos; member
|
/third_party/libwebsockets/lib/system/fault-injection/ |
D | fault-injection.c | 66 if (lws_xos_percent((lws_xos_t *)&fic->xos, (int)pv->fi.pre)) in lws_fi() 110 *result = pv->fi.pre + (lws_xos((lws_xos_t *)&fic->xos) % d); in lws_fi_range() 181 lws_xos_init(&fic_dest->xos, lws_xos((lws_xos_t *)&fic_src->xos)); in lws_fi_import()
|
/third_party/libwebsockets/lib/secure-streams/ |
D | secure-streams.c | 968 lws_xos_init(&temp_fic.xos, lws_xos(&context->fic.xos)); in lws_ss_create() 1058 lws_xos_init(&h->fic.xos, lws_xos(&context->fic.xos)); in lws_ss_create()
|
D | secure-streams-client.c | 643 lws_xos_init(&h->fic.xos, lws_xos(&context->fic.xos)); in lws_sspc_create()
|
/third_party/libwebsockets/lib/core-net/ |
D | wsi.c | 329 lws_xos_init(&wsi->fic.xos, lws_xos(&context->fic.xos)); in __lws_wsi_create_with_role()
|
/third_party/libwebsockets/lib/core/ |
D | libwebsockets.c | 1446 lws_xos_init(&info->fic.xos, seed); in lws_cmdline_option_handle_builtin()
|