Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/math/random/Secure.js

  • Provides:

    • dojox.math.random.Secure
  • dojox.math.random.Secure

    • type
      Function
    • parameters:
      • prng: (typeof Function:)
        function that returns an instance of PRNG (pseudorandom number generator)
        with two methods: init(array) and next(). It should have a property "size"
        to indicate the required pool size.
      • noEvents: (typeof Boolean:)
        if false or absent, onclick and onkeypress event will be used to add
        "randomness", otherwise events will not be used.
    • summary
      Super simple implementation of a random number generator,
      which relies on Math.random().
  • dojox.math.random.Secure.constructor

    • constructor - constructor
    • type
      Function
    • parameters:
      • prng: (typeof Function:)
        function that returns an instance of PRNG (pseudorandom number generator)
        with two methods: init(array) and next(). It should have a property "size"
        to indicate the required pool size.
      • noEvents: (typeof Boolean:)
        if false or absent, onclick and onkeypress event will be used to add
        "randomness", otherwise events will not be used.
    • summary
      Intializes an instance of a secure random generator.
  • dojox.math.random.Secure.destroy

    • summary
      Disconnects events, if any, preparing the object for GC.
    • type
      Function
  • dojox.math.random.Secure.nextBytes

    • parameters:
      • byteArray: (typeof Array)
        Array: array to be filled in with random numbers, only existing
        elements will be filled.
    • summary
      Fills in an array of bytes with random numbers
    • type
      Function
  • dojox.math.random.Secure.state

    • type
      Object
  • dojox.math.random.Secure.pool

    • type
      Object
  • dojox.math.random.Secure.pptr

    • type
      Number
  • dojox.math.random.Secure.seedTime

    • summary
      Mix in the current time (w/milliseconds) into the pool
    • type
      Function
  • dojox.math.random.Secure._seed_int

    • parameters:
      • x
    • summary
      Mix in a 32-bit integer into the pool
    • type
      Function
  • dojox.math.random.Secure.prng

    • type
      Function:
    • summary
      function that returns an instance of PRNG (pseudorandom number generator)
      with two methods: init(array) and next(). It should have a property "size"
      to indicate the required pool size.
      noEvents: Boolean?:
      if false or absent, onclick and onkeypress event will be used to add
      "randomness", otherwise events will not be used.
  • dojox.math.random.Secure.h

    • type
      Array
  • dojox.math.random

    • type
      Object
  • dojox.math

    • type
      Object
  • dojox

    • type
      Object