heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Change the PRNG #125

Open heyx3 opened 5 months ago

heyx3 commented 5 months ago
  1. Pick one that's more oriented towards GPU use-cases, from this paper or this ShaderToy reference.
  2. Refactor the bits-seeding @generated function to parameterize the number of bytes to output.
  3. Name the original ones as PRNG1 and ConstPRNG1, and the new ones as PRNG2 and ConstPRNG2.
  4. PRNG and ConstPRNG become aliases for whichever algorithm is currently considered the best for game and graphics use-cases, while users can opt into particular ones so their random generation is permanently stable.