Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Hasard 0.9.6

    Download button

    No screenshots available
    Downloads: 472  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Victor Stinner | More programs
    BSD License / FREE
    July 16th, 2009, 10:19 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Hasard description

    A pseudo-random number generator (PRNG) library.

    Hasard is a pseudo-random number generator (PRNG) library. It includes multiple engines (algorithms): Mersenne Twister, Park-Miller, Linux device (/dev/urandom or /dev/random). It has simple API but with strong code, eg. PRNG seed can be generated using strong entropy (hardware random number generator like /dev/random on Linux).

    The library is written in C and a Python binding is available. The library is distributed under BSD license.

    The word "hasard" is the french name of "randomness" or "chance".


    Product's homepage

    Here are some key features of "Hasard":

    · Simple functions to get integer, float or boolean with the best distribution
    · Support many engines: Mersenne Twister, ISAAC, Arcfour, ... (full list)
    · No need to feed the initial seed with poor entropy (eg. srand(time(0))
    · Functions to control the seed: jumpahead, get/set seed, get/set state and reseed
    · Informations about the PRNG: min/max period, does it support reseed, seed or state?
    · BSD license for easy integration in other libraries and programs
    · Quality tests: test entropy, compute PRNG period, unit tests
    · Attack tests: programs to find collisions, break a LCG
    · Tools: programs to create images to "view" the random, plain text file format used by most test programs

    What's New in This Release: [ read full changelog ]

    · @secure_nonblocking profile: try also dev_nonblocking and cryptgen (after OpenSSL secure and gcrypt strong)
    · Add a cache of 512 bytes to tick_array() for byte generators (optimize slow generators as dev_nonblocking or gcrypt_*)
    · Create doc/index.rst and doc/profile_list.rst documentation

      


    TAGS:

    number generator | Mersenne Twister | PRNG library | Park-Miller | random | number

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM