Bitcoin Forum
November 01, 2024, 12:05:57 PM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I create server seed for a gamble game?  (Read 1283 times)
KaozTiposta (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 101


View Profile
August 24, 2014, 04:01:02 PM
Last edit: August 30, 2014, 09:19:26 PM by KaozTiposta
 #1

Fixed.
Sir Bitcoin
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
August 24, 2014, 04:04:24 PM
 #2

Normally the way I have seen it done is take a random alphanumeric string.

Then hash it in SHA512 or equivalent and show it to users.
Cortex7
Full Member
***
Offline Offline

Activity: 238
Merit: 106


View Profile
August 24, 2014, 04:09:42 PM
 #3

You need crytpographically secure random func, many standard rand funcs are not.

If using PHP server side then take a look at this:

http://php.net/manual/en/function.openssl-random-pseudo-bytes.php

Then hash it, if you want to be really tight (maybe overkill for gambling with low max bets) then use multiple hashes of whirlpool.
kerimk2
Full Member
***
Offline Offline

Activity: 140
Merit: 100

ACCOUNT BANNED. Email in sig!!


View Profile
August 24, 2014, 04:10:53 PM
 #4

I have run a casino and sell scripts to many people. If you want a provably fair system with an automatic secret generating script, pm me. I could help you out.

If you need support for AutoPonzi contact: autoponzi@gmail.com
We aren't sure how long the ban is for. We aren't even sure why we are banned. But we'll try figure it out
KaozTiposta (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 101


View Profile
August 24, 2014, 04:12:24 PM
 #5

Thanks friends. I'm not using php so that link is not for me. I will go with sha512 I guess.
Mitchell
Staff
Legendary
*
Offline Offline

Activity: 4102
Merit: 2298


Verified awesomeness ✔


View Profile WWW
August 24, 2014, 04:14:56 PM
 #6

Thanks friends. I'm not using php so that link is not for me. I will go with sha512 I guess.
How are you generating the server seed? I really hope that you are using something that is server sided.

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
kerimk2
Full Member
***
Offline Offline

Activity: 140
Merit: 100

ACCOUNT BANNED. Email in sig!!


View Profile
August 24, 2014, 04:15:57 PM
 #7

Thanks friends. I'm not using php so that link is not for me. I will go with sha512 I guess.
How are you generating the server seed? I really hope that you are using something that is server sided.
Yea how is he doing this without php. I thought php was the only option for this kind of thing.

If you need support for AutoPonzi contact: autoponzi@gmail.com
We aren't sure how long the ban is for. We aren't even sure why we are banned. But we'll try figure it out
Cortex7
Full Member
***
Offline Offline

Activity: 238
Merit: 106


View Profile
August 24, 2014, 04:16:23 PM
 #8

Thanks friends. I'm not using php so that link is not for me. I will go with sha512 I guess.

Yes, but what random number generator are you using?

Some can allow hackers to gain advantage above house edge.
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
August 24, 2014, 05:06:35 PM
 #9

Generate random values using Node.js crypto module

Alternative to the above mentioned options might be generation of random values using crypto.randomBytes(size, [callback]) method from crypto Node.js module. randomBytes returns a buffer with randomly generated bytes. It can work asynchronously (when callback function is provided) or synchronously (only size parameter is provided). Returned buffer can be transformed using different encodings to get required format.

gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
August 25, 2014, 01:54:13 AM
 #10

If you have to ask this question, this probably means you shouldn't be running a game like dice. I get low-level hacking attempts everyday towards my server, just a warning if you can't defend this attacks you will be run down very fast.
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!