(min, max)
| 226 | } |
| 227 | |
| 228 | export function getRandomInt(min, max) { |
| 229 | const intArray = new Uint32Array(1); |
| 230 | crypto.getRandomValues(intArray); |
| 231 | |
| 232 | let range = max - min + 1; |
| 233 | return min + (intArray[0] % range); |
| 234 | } |
| 235 | |
| 236 | /* |
| 237 | * Extracts the background and foreground colors from a server icon string. |
no outgoing calls
no test coverage detected