mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Improve documentation
The Cosmo API documentation page is pretty good now https://justine.lol/cosmopolitan/documentation.html
This commit is contained in:
parent
13437dd19b
commit
1bc3a25505
367 changed files with 2542 additions and 26178 deletions
|
@ -26,10 +26,10 @@
|
|||
hidden uint64_t g_rando64;
|
||||
|
||||
textstartup static void g_rando64_init() {
|
||||
register intptr_t *auxv asm("r15"); /* @see libc/crt/crt.S */
|
||||
asm volatile("" : "=r"(auxv));
|
||||
intptr_t *auxvp;
|
||||
if (!IsXnu() && !IsWindows()) {
|
||||
for (intptr_t *auxvp = auxv; auxvp[0]; auxvp += 2) {
|
||||
asm("mov\t%%r15,%0" : "=r"(auxvp)); /* libc/crt/crt.S */
|
||||
for (; auxvp[0]; auxvp += 2) {
|
||||
if (auxvp[0] == AT_RANDOM) {
|
||||
uint8_t(*sysrandseed)[16] = (uint8_t(*)[16])auxvp[1];
|
||||
if (sysrandseed) g_rando64 ^= read64le(&(*sysrandseed)[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue