Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 14, 2010
Commits on Jul 13, 2010
  1. README for 0.3.1_RELEASE

  2. @dgud

    Added back list code to gen_rand32.

    dgud authored committed
    Having both an implementation in erlang and 'C' makes it simple to do
    measurements. This commit uses the lists, if you want the nifnized
    functions uncomment the function registrations in sfmt_nif.c
Commits on Jul 12, 2010
  1. @dgud

    Remove Size restrictions in gen_rand_list* functions.

    dgud authored committed
    The size had the following restrictions,
    size > N32 and size % 4 == 0.
  2. @dgud

    Fixed my convenience function which was moved to nif and added nifniz…

    dgud authored committed
    …ed gen_rand_float
    Two different things in the same commit, sorry.
    Added the possibility to send only state to gen_rand32/1 again,
    this functionality was lost in rebase of dev.
    Added the same functionality for gen_rand_float/1.
    Actually this is slower than previously, at least in my measurements.
    I.e. the list variant was faster.
  3. @dgud

    Add gen_rand_float functions.

    dgud authored committed
    Since this code is made to be fast move the float multiplication
    to the c-code.
  4. @dgud

    Added convenience function for gen_rand32/1

    dgud authored committed
  5. @dgud

    Make comparable measurments.

    dgud authored committed
  6. @dgud

    Make seed/0 compatible with random

    dgud authored committed
  7. @dgud

    Improved the priv dir finding.

    dgud authored committed
Commits on Jul 11, 2010
  1. ran_sfmt() is now {integer(), intstate()} where integer() means eleme…

    …nt index in the internal state table; get_rand32/1 changed accordingly
  2. removed NIFnized gen_rand32/1 from src/sfmt.erl; also changed 'undefi…

    …ned' to 'error_nifnized' in src/sfmt.erl
  3. added rebar.config

  4. added rebar binary

  5. removed c_src/

  6. removed unnecessary functions, and added explicit conversion from int…

    …state_to_randlist at sfmt.erl
  7. NIFnized init_gen_rand/1

  8. added sfmt_nif_gen_rand_list32() into sfmt_nif.c; also changed the me…

    …mory allocation method of sfmt_nif_gen_rand_all()
Something went wrong with that request. Please try again.