[erlang-questions] Re: Fastest pseudo-random number-generator: erlang:statistics(io) ?

Gleb Peregud gleber.p@REDACTED
Tue Nov 24 16:39:36 CET 2009


> Someone else told me
> that erlang:now() blocks the scheduler shortly, so that is something I
> definitely want to avoid.

Yes, since erlang:now() is guaranteed to return ascending numbers on
each call regardless of number of cores VM is running one. It has to
do some synchronization to meet this requirement.


More information about the erlang-questions mailing list