# Module: vertx-auth-common-js/vertx_context_prng

### Classes

VertxContextPRNG

### Methods

#### (static) VertxContextPRNG.current(vertx) → {VertxContextPRNG}

Get or create a secure non blocking random number generator using the current vert.x instance. Since the context might be different this method will attempt to use the current context first if available and then fall back to create a new instance of the PRNG.

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | a Vert.x instance.

Source:
  - vertx-auth-common-js/vertx_context_prng.js, line 104

##### Returns:

A secure non blocking random number generator.

Type
  VertxContextPRNG