MCPcopy Create free account
hub / github.com/antirez/rax / raxRandomWalk

Function raxRandomWalk

rax.c:1735–1773  ·  view source on GitHub ↗

Perform a random walk starting in the current position of the iterator. * Return 0 if the tree is empty or on out of memory. Otherwise 1 is returned * and the iterator is set to the node reached after doing a random walk * of 'steps' steps. If the 'steps' argument is 0, the random walk is performed * using a random number of steps between 1 and two times the logarithm of * the number of eleme

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

randomWalkTestFunction · 0.85

Calls 5

raxStackPopFunction · 0.85
raxIteratorDelCharsFunction · 0.85
raxIteratorAddCharsFunction · 0.85
raxStackPushFunction · 0.85
raxGetDataFunction · 0.85

Tested by 1

randomWalkTestFunction · 0.68