Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MultithreadedJSBook/code-samples
/ happy_result
Class
happy_result
ch1-c-threads/happycoin-threads.c:8–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#include <pthread.h>
7
8
struct happy_result {
9
size_t count;
10
uint64_t * nums;
11
};
12
13
uint64_t random64(uint32_t * seed) {
14
uint64_t result;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected