Skip to content

Instantly share code, notes, and snippets.

View foolnotion's full-sized avatar

Bogdan Burlacu foolnotion

View GitHub Profile
@foolnotion
foolnotion / jsf.hpp
Created October 25, 2018 20:45 — forked from imneme/jsf.hpp
A C++ Implementation of Bob Jenkins's Small Fast Noncryptographic PRNG (JSF)
#ifndef JSF_HPP_INCLUDED
#define JSF_HPP_INCLUDED 1
/*
* A C++ implementation of a Bob Jenkins Small Fast (Noncryptographic) PRNGs
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Melissa E. O'Neill
*
@foolnotion
foolnotion / random.h
Created October 25, 2018 19:58 — forked from Leandros/random.h
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; }