Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CE-Programming/CEmu
/ bus_rand
Function
bus_rand
core/bus.c:17–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
}
16
17
uint8_t bus_rand(void) {
18
#ifndef FASTEST_RAND
19
x++;
20
a ^= c ^ x;
21
b += a;
22
c = ((c + (b >> 1)) ^ a);
23
return c;
24
#else
25
return 5;
26
#endif
27
}
28
Callers
8
bus_init_rand
Function · 0.85
emu_lcd_drawmem
Function · 0.85
mem_read_unmapped_ram
Function · 0.85
mem_read_unmapped_flash
Function · 0.85
mem_read_unmapped_other
Function · 0.85
control_write
Function · 0.85
panel_start_line
Function · 0.85
cpu_execute
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected