aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/rand.cpp
blob: ea30922d731d8eedca137add56ba5e6cfb9177a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionsRandom.h>

namespace DB
{
namespace
{

struct NameRand { static constexpr auto name = "rand"; };
using FunctionRand = FunctionRandom<UInt32, NameRand>;

}

REGISTER_FUNCTION(Rand)
{
    factory.registerFunction<FunctionRand>({}, FunctionFactory::CaseInsensitive);
    factory.registerAlias("rand32", NameRand::name);
}

}