jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 07:53:29 AM |
|
Hi Bitcoiner! So, I came up with an idea last night. A Bitcoin site which pay reward users it revenue. Much like a faucet, however.. it only reward once in a month* and.. only selected people will be able to get those Bitcoin. Those Bitcoin.. of course.. come from the website revenue.
I'm thinking of a ticketing system. Whereas, users can only redeem one ticket per week*. When the time is up, the system will randomly choose some^ ticket number. The lucky person with the ticket number will then be rewarded with some Bitcoin.
The purpose of this new so-called 'faucet' is to let user earn more on faucet. I hate it when getting only a hundred satoshi in faucet.
It will be coded using PHP. I'm still having trouble to let the computer pick a random number. rand() function might work but.. my users wont be trusting me. Any solutions is welcome. Feedback too.
Not sure where to post, move this if you want.
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Dilemma
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:02:08 AM |
|
i like new project, new sites and new system i hope you can do your project its looks profitable.
|
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:05:22 AM |
|
i like new project, new sites and new system i hope you can do your project its looks profitable.
Thanks for the supporting comment! You are welcome to try my project when it is up and running! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2222
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:16:37 AM |
|
First of all, please make something like this. It's sounds like a nice little project. Secondly, don't use rand(), ever. Either use mt_rand() or openssl_random_pseudo_bytes(). rand() isn't random at all.To proof that you aren't cheating you could publish a hash from which you will generate a number later on. A good hash would be a number that we can verify (for example a block number) and some random stuff that you picked. Just publish what you have done to get the number and show us everything you used.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:27:53 AM |
|
First of all, please make something like this. It's sounds like a nice little project. Secondly, don't use rand(), ever. Either use mt_rand() or openssl_random_pseudo_bytes(). rand() isn't random at all.To proof that you aren't cheating you could publish a hash from which you will generate a number later on. A good hash would be a number that we can verify (for example a block number) and some random stuff that you picked. Just publish what you have done to get the number and show us everything you used. Alright. Thanks for pointing out that rand() is not random at all. Hmm.. a hash to generate a number? Sound great! However, I'm thinking to make it somewhat community-based work. I mean.. everyone got to pick a number or two. The most picked number will be chosen to be the winner. Thus, meaning.. when they redeem their tickets, they wont be able to see their ticket ID. The ID will be given using the AUTO_INCREMENT on SQL.
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2222
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:31:27 AM |
|
Alright. Thanks for pointing out that rand() is not random at all. Hmm.. a hash to generate a number? Sound great! However, I'm thinking to make it somewhat community-based work. I mean.. everyone got to pick a number or two. The most picked number will be chosen to be the winner. Thus, meaning.. when they redeem their tickets, they wont be able to see their ticket ID. The ID will be given using the AUTO_INCREMENT on SQL. That isn't a smart idea, because it will be abused pretty quickly. Someone could grab a proxy list and start voting for a number they want to vote for (and thus win easily). You should be in control about the number that wins, not the users. Rule of the thumb: Never trust the user, ever.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:36:32 AM |
|
Alright. Thanks for pointing out that rand() is not random at all. Hmm.. a hash to generate a number? Sound great! However, I'm thinking to make it somewhat community-based work. I mean.. everyone got to pick a number or two. The most picked number will be chosen to be the winner. Thus, meaning.. when they redeem their tickets, they wont be able to see their ticket ID. The ID will be given using the AUTO_INCREMENT on SQL. That isn't a smart idea, because it will be abused pretty quickly. Someone could grab a proxy list and start voting for a number they want to vote for (and thus win easily). You should be in control about the number that wins, not the users. Rule of the thumb: Never trust the user, ever. Alright, noted. I would be great if you can give me some tip on generating a number from a hash.
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2222
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:38:47 AM |
|
Alright, noted. I would be great if you can give me some tip on generating a number from a hash. Send me a PM and I will get back to you as soon as I'm done at work. Going to create a small sample script for you ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 08:43:29 AM |
|
Alright, noted. I would be great if you can give me some tip on generating a number from a hash. Send me a PM and I will get back to you as soon as I'm done at work. Going to create a small sample script for you ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) Thanks for guiding me to the right path! I would not have know about the rand() function secret.. Anyway, sent you a PM! I will be crediting you once my site is up and running! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2222
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 04:01:41 PM |
|
Litte example to show you how bad PHP + rand() is: Source: https://www.random.org/analysis/This should have been a completely random "picture".
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
kinnu
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2015, 05:06:53 PM |
|
I am interested in your site please send more details in pm
|
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2015, 08:56:04 AM |
|
Thanks for pointing it out. I will be noting it. I am interested in your site please send more details in pm
Hmm.. what other information do you need? All information (almost) is in the first thread..
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 10, 2015, 01:15:26 AM |
|
Hmm.. @bitcoininformation is there any update? Anyway, I came up with another idea to choose who the winner is. Well, since we are rewarding players from advertisement revenue, we will first need to receive our payment. The payment we receive with have a TX Hash. We will then use the TX Hash to determine the winners. I'm thinking of the first 6 digits numbers. Thus, there will be a 'draw' (picking of winners) when we have 999,999 tickets. Well, sometime we might even draw when we have enough BTC. Thus, making the 'game' run faster.
What would you guys (or girls) like? A: Ticket number from 1 to 999,999 - using AUTO_INCREMENT on SQL. B: Randomly pick a ticket number from 1 to 999,999 - using mt_rand().
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2222
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 10, 2015, 11:13:03 AM |
|
Sorry mate, I totally lost track of this. So much going on right now, but it seems that you found a great solution to the problem. I would, personally, go with B, because, well, that seems like the better option IMO.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 13, 2015, 01:03:53 PM |
|
Sorry mate, I totally lost track of this. So much going on right now, but it seems that you found a great solution to the problem. I would, personally, go with B, because, well, that seems like the better option IMO.
It is alright. Noted your answer. I will be doing B since it since better. I'm done with home page (with some FAQs) and a register page (very secure hashing algorithm). Gonna do a login script tomorrow and finally a simple script to redeem tickets. I have around 10 USD worth of Bitcoin to buy a domain and hosting. Any donation would be appreciate, although it is not needed.
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
jacktheking (OP)
Legendary
Offline
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 09, 2015, 08:38:06 AM |
|
Sorry for the delay. I'm done with the script. You can redeem a ticket every 24 hours. The winning ticket will be determined by the TX Hash sent from Ad Network. I'm now researching on which Bitcoin Ad Network to use.
To make it transparency, I would like to ask if any of you would like an escrow? The escrow will have the login detail to the Ad Network. So as to check the TX Hash.
|
So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.
Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!
Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
|
|
|
|