Skip to content

Instantly share code, notes, and snippets.

@danmux
Created October 8, 2016 10:16
Show Gist options
  • Save danmux/3664adcbef6b3197de7e7e18d1aa5c86 to your computer and use it in GitHub Desktop.
Save danmux/3664adcbef6b3197de7e7e18d1aa5c86 to your computer and use it in GitHub Desktop.
Dan: and the only algo we have for creating tokens right now is sha256 :)
Leonardo: is good enough :-)
Dan: source value is sha256 from rand ...... "On Unix-like systems, Reader reads from /dev/urandom. On Windows systems, Reader uses the CryptGenRandom API."
Leonardo: I do not tust that
Dan: yes
Leonardo: I always have a USB connected sensor to fetch quantum noise
Dan: yes we may wan to consider that kind of thing at some point - not sure how collisiony it is
Leonardo: :-)
Leonardo: I guess is not an issue for the frequency we use
Leonardo: you have to generate a million of those per second for the next century until you have more than 50% change to have a single collision
Leonardo: or something like that
Dan: oh, so once we have expanded to the nearest thousand star systems we may have to change
Leonardo: yes
Dan: damn network latency may be a problem...
Leonardo: and still, one collision is not the end of the world
Dan: lol jk
Dan: dont tell the dinosaurs that!
Leonardo: LOL!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment