POV-Ray : Newsgroups : povray.off-topic : PRNG : Re: PRNG Server Time
29 Jul 2024 18:31:07 EDT (-0400)
  Re: PRNG  
From: Invisible
Date: 23 Jun 2011 04:08:23
Message: <4e02f477@news.povray.org>
On 22/06/2011 11:24 PM, clipka wrote:
> Am 22.06.2011 23:04, schrieb Darren New:
>> On 6/22/2011 13:23, Orchid XP v8 wrote:
>>> looked specifically at functions which are cheap to compute but still
>>> look
>>> "reasonably random".
>>
>> Yes. They're called "non-cryptographic hashes". ;-)
>
> ... but beware - there are some pretty simple algorithms out there that
> probably don't suit your needs. E.g., "hash(data) := data mod N"
> qualifies as a hash function, but probably not as "reasonably random".

Yeah, a hash function for a hash table just needs to avoid collisions if 
possible. The results don't need to "look random" at all.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.