Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GJDuck/e9patch
/ srand
Function
srand
examples/stdlib.c:5676–5679 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5674
static volatile uint32_t rand_state = 0;
5675
5676
static void srand(unsigned seed)
5677
{
5678
rand_state = (seed - 1);
5679
}
5680
5681
static int rand(void)
5682
{
Callers
2
test_qsort
Function · 0.85
main_2
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_qsort
Function · 0.68