Commit graph

7 commits

Author SHA1 Message Date
Miguel Oliveira 3da91cf3a2 Fix random.random
Whoops.
2023-06-11 12:01:05 -03:00
Miguel Oliveira 8d77e6597c Check argument types in random.mix 2023-06-09 21:23:02 -03:00
Miguel Oliveira 5c615a14d3 Fix random.random erroring with a negative length
Calling random.random(-1) will return an empty string and set the state
to a 31-byte string. This makes any further call in the module error.
2023-06-09 21:22:25 -03:00
Miguel Oliveira a42fe34ba1 Change module exports syntax 2023-06-08 01:19:44 -03:00
Miguel Oliveira cb620cfb0a Rework comments to new annotation style 2023-06-08 01:15:16 -03:00
Miguel Oliveira 6fbbab378a Simplify random initialization
The entropy is now provided by the user. They are tasked with finding a
high-quality source of entropy to initialize the generator with.
2023-04-11 16:46:13 -03:00
Miguel Oliveira 9d060fa581 Move directory and add unit tests 2022-12-14 00:00:27 -03:00
Renamed from random.lua (Browse further)