MCPcopy 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

12var MAX_RANDOM_PRIORITY = 10;
13
14function randomPriority() {
15 return Math.floor(Math.random() * (MAX_RANDOM_PRIORITY + 1));
16}
17
18function expectPriorityOrder(priorities) {
19 priorities.forEach(function(bucket, priority) {

Callers 1

connection.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected