Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RandomAPI/Randomuser.me-Node
/ genSIN
Function
genSIN
api/1.4/data/CA/inject.js:25–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
return
result % 10 === 0;
24
};
25
const
genSIN = () => {
26
let
sin = random(3, 9);
27
while
(!checkSIN(sin)){
28
sin = random(3, 9);
29
}
30
return
sin;
31
};
32
contents.id = {
33
name:
'SIN'
,
34
value: genSIN()
Callers
1
inject.js
File · 0.85
Calls
2
checkSIN
Function · 0.85
random
Function · 0.50
Tested by
no test coverage detected