Menu

#237 SRFI-27 (make-random-source 'fast) broken

closed
nobody
None
5
2007-10-09
2007-10-09
No

The SRFI-27 function make-random-source returns an incorrect value when asked to return a non-secure random source.

To reproduce:
(require-library 'sisc/libs/srfi/srfi-27) ; sources of random bits
(import srfi-27)
(random-source? (make-random-source 'fast))

=> #f

Discussion

  • Alessandro Colomba

    Logged In: YES
    user_id=544263
    Originator: YES

    Fixed. A typo in make-fast-prng caused the function to return a passed integer instead of a java.util.Random based on that integer.

     
  • Alessandro Colomba

    • status: open --> closed
     

Log in to post a comment.