Skip to content

Instantly share code, notes, and snippets.

if(__CMAKE_EXTRA_BOOTSTRAP_CMAKE__)
return()
endif()
set(__CMAKE_EXTRA_BOOTSTRAP_CMAKE__ TRUE)
function(__cmake_extra_bootstrap_error)
message(FATAL_ERROR "An error occured while checking out cmake-extra submodule.\n"
"Please get a copy of cmake-extra sources from https://github.com/berenm/cmake-extra and copy them in ${CMAKE_CURRENT_SOURCE_DIR}/cmake/extra.\n"
"For short :\n"
@Leandros
Leandros / random.h
Created July 2, 2018 05:22
C++ Pseudo Random Number Generators
/* Copyright (c) 2018 Arvid Gerstmann. */
/* This code is licensed under MIT license. */
#ifndef AG_RANDOM_H
#define AG_RANDOM_H
class splitmix
{
public:
using result_type = uint32_t;
static constexpr result_type (min)() { return 0; }