mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
18 lines
355 B
C++
18 lines
355 B
C++
#include <DB/Functions/FunctionFactory.h>
|
|
#include <DB/Functions/FunctionsRandom.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerFunctionsRandom(FunctionFactory & factory)
|
|
{
|
|
#define F [](const Context & context)
|
|
|
|
factory.registerFunction("rand", F { return new FunctionRand; });
|
|
factory.registerFunction("rand64", F { return new FunctionRand64; });
|
|
|
|
#undef F
|
|
}
|
|
|
|
}
|