aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/crypto_uuid_generator.h
blob: 226faa4c4c77bf1fb5596ef660a06fab122ab8f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. 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;
};

}