Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
main.ch
Declarations in
main.ch
1
declarations
osrand
Declarations
Public only
osrand
#
Public
namespace
namespace
osrand
osrand — Shared random number generator for the Chemical ecosystem.
random_fill
#
Public
function
func
random_fill(buf : *u8, len : size_t) : int
copy
Fill a buffer with cryptographically secure random bytes.
random_u32
#
Public
function
func
random_u32() : u32
copy
Generate a single random u32.
random_u64
#
Public
function
func
random_u64() : u64
copy
Generate a random u64.
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/osrand/src/main.ch
File ID: 110
↑