Settings

Theme

Show HN: Play poker with friends in the browser – with built-in video chat

kosmi.io

3 points by hauxir a month ago · 2 comments

Reader

LevkaDev a month ago

Nice project. Quick technical question: how are cards shuffled and dealt?

Is the RNG fully server-side, and what source are you using (e.g. crypto-secure PRNG)? Also curious whether the shuffle is deterministic per hand or purely random each time.

  • hauxirOP a month ago

    RNG is fully server-side (Elixir). Uses Enum.shuffle/1 (Fisher-Yates) seeded from OS entropy. Fresh shuffle each hand, not deterministic. Frontend only receives dealt cards, no deck access.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection