Author

Topic: How to generate provably fair random number? (Read 2529 times)

legendary
Activity: 1151
Merit: 1003
November 07, 2013, 05:36:49 AM
#3
RdRand (also RDRAND) is an instruction for returning random numbers from an on-chip random number generator.RdRand is available in Ivy Bridge processors and is part of the Intel 64 and IA-32 instruction set architectures. The random number generator is compliant with security and cryptographic standards such as NIST SP800-90, FIPS 140-2, and ANSI X9.82.
legendary
Activity: 1134
Merit: 1008
CEO of IOHK
November 06, 2013, 10:09:20 AM
#2
If you're doing it in js, then lift gibson's code here https://www.grc.com/r&d/js.htm or use the stanford js library built by Dan Boneh et all http://bitwiseshiftleft.github.io/sjcl/doc/symbols/sjcl.random.html.

Make sure you send the js over an ssl connect to avoid a MITM code substitution. You can also sign the code with the websites cert. JS crypto is hard.
full member
Activity: 336
Merit: 100
November 06, 2013, 09:35:30 AM
#1
I am making a bitcoin gamble site, but i dont know how to generate provably fair number.
Jump to: