lorenzogentile404 / prng-keccak256

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solidiy Pseudo-Random Number Generator based on KECCAK-256

This repository contains a Solidity implementation of a Pseudo-Random Number Generator using KECCAK-256. An analogous approach based on SHA-256 is available here and here. The algorithm assumes that a random seed is provided. In the context of Ethereum this random seed can be computed by running a coin tossing protocol in the caller contract. For comparison, also a Python implemetation using SHA-256 is available in the repository.

About


Languages

Language:Solidity 57.2%Language:Python 42.8%