MCPcopy Create free account
hub / github.com/nodejs/node / rc

Function rc

deps/v8/test/mjsunit/unicodelctest.js:74–88  ·  view source on GitHub ↗
(last)

Source from the content-addressed store, hash-verified

72
73// Random character.
74function rc(last) {
75 var c = rand();
76 // Increase the concentration of problematic values around the page
77 // edges.
78 if (rand() & 1) {
79 c = (c & 0xff80) + (c & 3) - 2;
80 }
81 // Increase the concentration of problematic values around the ends.
82 if (rand() & 31 == 0) c = 0xfff8 + (rand() & 7)
83 if (rand() & 31 == 0) c = (rand() & 7)
84
85 // Increase the concentration of values near each other.
86 if (rand() & 1) c = last + (rand() & 15) - 8;
87 return c & 0xffff; // Only code unit values.
88}
89
90
91function fuzz() {

Callers 4

fuzzFunction · 0.70
GetRcflagsMethod · 0.50
adduser.jsFile · 0.50
login.jsFile · 0.50

Calls 1

randFunction · 0.70

Tested by

no test coverage detected