(last)
| 72 | |
| 73 | // Random character. |
| 74 | function 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 | |
| 91 | function fuzz() { |
no test coverage detected