aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/crypto_uuid_generator.h
blob: 0fd1dac36212ab4cd830882beafa56505b368b9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "uuid_generator.h"

namespace storage::distributor {

/**
 * Generates a 128-bit unique identifier (represented as a hex string) from
 * a cryptographically strong source of pseudo-randomness.
 */
class CryptoUuidGenerator : public UuidGenerator {
public:
    ~CryptoUuidGenerator() override = default;
    vespalib::string generate_uuid() const override;
};

}