10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::utl::random::RandomUrlSafeString Class Reference

#include <RandomURLSafeString.h>

Detailed Description

Generates string of random URL-safe characters.

Inheritance diagram for tenduke::utl::random::RandomUrlSafeString:
tenduke::test::fakes::FakeRandomURLSafeString

Public Member Functions

 RandomUrlSafeString (std::shared_ptr< RandomBytes > randomBytes)
 Constructs new instance.
 
virtual std::string generate (std::size_t length)
 Generates random string.
 

Constructor & Destructor Documentation

◆ RandomUrlSafeString()

tenduke::utl::random::RandomUrlSafeString::RandomUrlSafeString ( std::shared_ptr< RandomBytes randomBytes)
inlineexplicit

Constructs new instance.

Parameters
randomBytesfor generating random bytes

Member Function Documentation

◆ generate()

std::string tenduke::utl::random::RandomUrlSafeString::generate ( std::size_t  length)
virtual

Generates random string.

Parameters
lengthnum characters to generate
Returns
random string of length

Reimplemented in tenduke::test::fakes::FakeRandomURLSafeString.


The documentation for this class was generated from the following files: