blob: f193b16810b3d80d7427ce7355eb70d023af80b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
namespace storage::distributor {
/**
* Generator of universally unique identifiers (not actually conforming UUIDs, as these
* have MSB semantics) that are expected to be effectively collision free.
*/
class UuidGenerator {
public:
virtual ~UuidGenerator() = default;
// Returns a string that is guaranteed ASCII-only
virtual vespalib::string generate_uuid() const = 0;
};
}
|