ClickHouse/src/Functions/rand.cpp
2022-08-27 22:06:57 +02:00

21 lines
390 B
C++

#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);
}
}