(val)
| 255 | } |
| 256 | |
| 257 | function setFips(val) { |
| 258 | if (getOptionValue('--force-fips')) { |
| 259 | if (val) return; |
| 260 | throw new ERR_CRYPTO_FIPS_FORCED(); |
| 261 | } else { |
| 262 | if (!lazyOwnsProcessState()) { |
| 263 | throw new ERR_WORKER_UNSUPPORTED_OPERATION('Calling crypto.setFips()'); |
| 264 | } |
| 265 | setFipsCrypto(val); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | function getRandomValues(array) { |
| 270 | return lazyWebCrypto().crypto.getRandomValues(array); |
nothing calls this directly
no test coverage detected
searching dependent graphs…