トークン系の乱数ソースではcryptoを使うように (#6200)
This commit is contained in:
parent
e2183400e5
commit
244ef0cb8f
5 changed files with 29 additions and 8 deletions
|
|
@ -1,3 +1,3 @@
|
|||
import rndstr from 'rndstr';
|
||||
import { secureRndstr } from '../../../misc/secure-rndstr';
|
||||
|
||||
export default () => rndstr('a-zA-Z0-9', 16);
|
||||
export default () => secureRndstr(16, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue