156 reputation
1
bio website lshift.net
location London, United Kingdom
age 43
visits member for 3 years, 3 months
seen Feb 11 at 14:11

Mar
22
comment How to efficiently generate a stream of independent, but biased random bits?
Hey :) You're right, the algorithm is FP friendly! But 1/5 can't be represented exactly in FP, which could introduce a small error.
Mar
22
awarded  Teacher
Mar
22
answered How to efficiently generate a stream of independent, but biased random bits?
Mar
22
comment How to efficiently generate a stream of independent, but biased random bits?
If you're worried about floating point behaviour, pass in a rational rather than a float!
Aug
3
comment ID-Secret Scheme
Please don't design a scheme and then ask us "is this secure?". Instead, tell us what you want to achieve and hopefully we can point you to a standard answer accompanied by a good security reduction.