From 1d3a820055f93e9b07a2ae77323c626315e2a064 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Thu, 31 Mar 2022 21:10:43 +0700 Subject: [PATCH] fix: change default rng to RandomDevice --- src/Nanoid.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Nanoid.jl b/src/Nanoid.jl index edca69c..fec7028 100644 --- a/src/Nanoid.jl +++ b/src/Nanoid.jl @@ -2,10 +2,9 @@ module Nanoid using Random -# Write your package code here. const urlalphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" -rng = MersenneTwister() +rng = Random.RandomDevice() function randomcharacter(from::String)::Char return rand(rng, from)