Bitcoin Forum
April 27, 2024, 01:55:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to generate provably fair random number?  (Read 2487 times)
birkomester (OP)
Full Member
***
Offline Offline

Activity: 336
Merit: 100


View Profile
November 06, 2013, 02:35:30 PM
 #1

I am making a bitcoin gamble site, but i dont know how to generate provably fair number.
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
1714182920
Hero Member
*
Offline Offline

Posts: 1714182920

View Profile Personal Message (Offline)

Ignore
1714182920
Reply with quote  #2

1714182920
Report to moderator
charleshoskinson
Legendary
*
Offline Offline

Activity: 1134
Merit: 1008

CEO of IOHK


View Profile WWW
November 06, 2013, 03:09:20 PM
 #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.

The revolution begins with the mind and ends with the heart. Knowledge for all, accessible to all and shared by all
Buratino
Legendary
*
Offline Offline

Activity: 1151
Merit: 1003


View Profile
November 07, 2013, 10: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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!