mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-16 16:14:06 +00:00
Having the OS/runtime provide a cryptographic entropy source is the right thing to do, and we need it to initialize the default random number generator.
14 lines
258 B
Odin
14 lines
258 B
Odin
#+build freestanding
|
|
#+private
|
|
package runtime
|
|
|
|
_HAS_RAND_BYTES :: false
|
|
|
|
// TODO(bill): reimplement `os.write`
|
|
_stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
|
|
return 0, -1
|
|
}
|
|
|
|
_exit :: proc "contextless" (code: int) -> ! {
|
|
trap()
|
|
} |