MCPcopy Create free account
hub / github.com/couchbase/forestdb / _set_random_string

Function _set_random_string

tests/functional/functional_util.cc:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "functional_util.h"
19
20void _set_random_string(char *str, int len)
21{
22 str[len--] = 0;
23 do {
24 str[len] = '!' + random('~'-'!');
25 } while (len--);
26}
27
28void _set_random_string_smallabt(char *str, int len)
29{

Callers 4

getDefaultConfigFunction · 0.85
loadDocsWithRandomKeysFunction · 0.85
updateDocsWithRandomKeysFunction · 0.85
_writer_threadFunction · 0.85

Calls

no outgoing calls

Tested by 4

getDefaultConfigFunction · 0.68
loadDocsWithRandomKeysFunction · 0.68
updateDocsWithRandomKeysFunction · 0.68
_writer_threadFunction · 0.68