Hacker News new | past | comments | ask | show | jobs | submit login

This is partly the fault of Flash itself. It doesn't provide control over seeding the API's PRNG.

A diligent coder can of course implement their own PRNG method, but that is not an excuse for providing a half-broken feature.




The regular random number generator in Flash is automatically seeded and you can't specify a seed. This article, though, talks about using BitmapData.noise() which takes a seed as a parameter, and normally when I see people discussing the use of that API for general purpose random number generation it is precisely because it allows control over seeding.


rc4 is a prefect algorithm to build a fast and very high quality PRNG for instance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: