Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/foundationdb
/ randomUnicode
Function
randomUnicode
bindings/python/tests/tuple_tests.py:39–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
38
39
def
randomUnicode():
40
while
True:
41
c = random.randint(0, 0xffff)
42
if
unicodedata.category(unichr(c))[0] in
'LMNPSZ'
:
43
return
unichr(c)
44
45
46
def
randomElement():
Callers
1
randomElement
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected