MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / go_rand

Function go_rand

tests/test_doc_mentions_go.c:529–532  ·  view source on GitHub ↗

A fixed pseudo-random sequence: the same texts on every run and platform. */

Source from the content-addressed store, hash-verified

527
528/* A fixed pseudo-random sequence: the same texts on every run and platform. */
529static uint32_t go_rand(uint32_t *state) {
530 *state = (*state * 1664525U) + 1013904223U;
531 return *state >> 8;
532}
533
534/* Append one of `count` pieces, chosen by the sequence. */
535static size_t go_rand_piece(char *buf, size_t len, size_t cap, uint32_t *state,

Callers 2

go_rand_pieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected