MCPcopy Create free account
hub / github.com/cryptii/cryptii / randomizeValueWithCallback

Method randomizeValueWithCallback

src/Field.js:335–340  ·  view source on GitHub ↗

* Returns a randomly chosen value using the custom randomize value callback. * If not applicable, `null` is returned. * @protected * @param {Random} random Random number generator * @return {mixed} Randomly chosen value

(random)

Source from the content-addressed store, hash-verified

333 * @return {mixed} Randomly chosen value
334 */
335 randomizeValueWithCallback (random) {
336 if (this._randomizeValueCallback !== null) {
337 return this._randomizeValueCallback(random, this)
338 }
339 return null
340 }
341
342 /**
343 * Returns wether a custom randomize value callback is set.

Callers 1

randomizeValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected