Skip to main content
  • Snap
  • Restricted

snap_getEntropy

Parameters

version

1

The version of the entropy to retrieve. This is used for backwards compatibility. As of now, only version 1 is supported.

salt

string | undefined

The optional salt to use when deriving the entropy.

source

string | undefined

The ID of the entropy source to use. If not specified, the primary entropy source will be used. For a list of available entropy sources, see the snap_listEntropySources method.

Returns

length

number