Function nav2_util::time_to_string

Function Documentation

std::string nav2_util::time_to_string(size_t len)

Generates a pseudo random string of digits.

Generates pseudo random digits by converting the current system time to a string. This means that any length more than 8 or so digits will just get padded with zeros and doesn’t add any additional randomness.

Parameters:

len[in] Length of the output string

Returns:

A string containing random digits