fix: change default rng to RandomDevice

This commit is contained in:
Reinaldy Rafli 2022-03-31 21:10:43 +07:00
parent 074e5e69de
commit 1d3a820055
No known key found for this signature in database
GPG Key ID: 748A8EC5DB8653E8
1 changed files with 1 additions and 2 deletions

View File

@ -2,10 +2,9 @@ module Nanoid
using Random using Random
# Write your package code here.
const urlalphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" const urlalphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"
rng = MersenneTwister() rng = Random.RandomDevice()
function randomcharacter(from::String)::Char function randomcharacter(from::String)::Char
return rand(rng, from) return rand(rng, from)