MCPcopy 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

5674static volatile uint32_t rand_state = 0;
5675
5676static void srand(unsigned seed)
5677{
5678 rand_state = (seed - 1);
5679}
5680
5681static int rand(void)
5682{

Callers 2

test_qsortFunction · 0.85
main_2Function · 0.85

Calls

no outgoing calls

Tested by 1

test_qsortFunction · 0.68