TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Idea of a little simple lottery system with hash

5 pointsby keepworkingabout 1 year ago
I just came up with the idea of a little simple lottery system with hash.<p>{Time of purchase of lottery } + {lottery number} + {buyer id} +...<p>The above form is listed each time the buyer continues to be added, and the winner&#x27;s lottery number is derived from the hashing value of the data.<p>I think it is difficult to manipulate because it does not require the reliability of any random number generator and because the participants provide random numbers.<p>I don&#x27;t think the hardware resources will be big, and I think it&#x27;s a pretty easy way to implement and for participants to verify, so can you give me some advice?

1 comment

a_tartarugaabout 1 year ago
This isn&#x27;t specified well enough to get detailed criticism. I don&#x27;t know what you&#x27;re hashing exactly but I think it includes purchase time. Depending on resolution of {Time of purchase of lottery} it might be very easy to manipulate.
评论 #40305325 未加载