mirror of https://github.com/aldy505/Nanoid.jl.git
fix: change default rng to RandomDevice
This commit is contained in:
parent
074e5e69de
commit
1d3a820055
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue