Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/molnarg/node-http2
/ randomPriority
Function
randomPriority
test/connection.js:14–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
var
MAX_RANDOM_PRIORITY = 10;
13
14
function
randomPriority() {
15
return
Math.floor(Math.random() * (MAX_RANDOM_PRIORITY + 1));
16
}
17
18
function
expectPriorityOrder(priorities) {
19
priorities.forEach(
function
(bucket, priority) {
Callers
1
connection.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected