ActionScript 3 Cryptography Library | All Packages | All Classes | Index | Frames No Frames |
Random

Package | com.hurlant.crypto.prng
Class | public class Random
Inheritance | Random Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | Random(prng:Class = null) | Random
|  | autoSeed():void Gather anything we have that isn't entirely predictable: - memory used - system capabilities - timing stuff - installed fonts | Random
|  | dispose():void | Random
|  | nextByte():int | Random
|  | nextBytes(buffer:ByteArray, length:int):void | Random
|  | seed(x:int = 0):void | Random
|  | toString():String | Random

Constructor Detail

Random | () | Constructor

`public function Random(prng:Class = null)`

Parameters

| `prng:Class` (default = `null`)``

Method Detail

autoSeed | () | method

`public function autoSeed():void`

Gather anything we have that isn't entirely predictable: - memory used - system capabilities - timing stuff - installed fonts

dispose | () | method |

`public function dispose():void`

nextByte | () | method |

`public function nextByte():int`

Returns

| `int`

nextBytes | () | method |

`public function nextBytes(buffer:ByteArray, length:int):void`

Parameters

| `buffer:ByteArray`
| `length:int`

seed | () | method |

`public function seed(x:int = 0):void`

Parameters

| `x:int` (default = `0`)``

toString | () | method |

`public function toString():String`

Returns

| `String`

Mon May 20 2013, 09:16 PM +02:00