[#BloombergLP-bslh-SeedGenerator]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::SeedGenerator
:relfileprefix: ../../
:mrdocs:

This class template implements a seed generator which takes a user supplied random number generator and uses it to generate an arbitrary length seed&period; Note that this type inherits from the (template parameter) type `RANDOM&lowbar;NUM&lowbar;GEN` to take advantage of the empty&hyphen;base optimization&period;

== Synopsis

Declared in `&lt;bslh&lowbar;seedgenerator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANDOM&lowbar;NUM&lowbar;GEN&gt;
class SeedGenerator;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslh/SeedGenerator/2constructor-05.adoc[`SeedGenerator`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bslh/SeedGenerator/generateSeed.adoc[`generateSeed`] 
| Generate a seed of the specified `seedLength` bytes and store it at the specified `seedLocation`&period; The seed will be generated with bytes from the random number generator supplied at construction&period; All of the returned bytes will come from the RNG, meaning if the requested seed is larger than the return type of the RNG, the RNG will be called multiple times&period; The behaviour is undefined unless the memory at `seedLocation` can store `seedLength` bytes&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
