JanetDocsI'm feeling luckyGithub sign in

os/cryptorand



    cfunction

    (os/cryptorand n &opt buf)
    
    Get or append n bytes of good quality random data provided by the OS.
    Returns a new buffer or buf.


1 exampleSign in to add an example
Loading...
(os/cryptorand 1)  # => @"\n"
(os/cryptorand 1)  # => @"<"
(os/cryptorand 1)  # => @"\xC0"
(os/cryptorand 1)  # => @"\x89"

(os/cryptorand 8)  # => @"\x87\x13\x99\x95\x10su\e"
cellularmitosis