Home
last modified time | relevance | path

Searched refs:xos (Results 1 – 8 of 8) sorted by relevance

/third_party/libwebsockets/lib/misc/
Dprng.c37 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/
Dmain.c257 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/
Dlws-fault-injection.h40 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/
Dfault-injection.c66 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/
Dsecure-streams.c968 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()
Dsecure-streams-client.c643 lws_xos_init(&h->fic.xos, lws_xos(&context->fic.xos)); in lws_sspc_create()
/third_party/libwebsockets/lib/core-net/
Dwsi.c329 lws_xos_init(&wsi->fic.xos, lws_xos(&context->fic.xos)); in __lws_wsi_create_with_role()
/third_party/libwebsockets/lib/core/
Dlibwebsockets.c1446 lws_xos_init(&info->fic.xos, seed); in lws_cmdline_option_handle_builtin()