るりまサーチ

最速Rubyリファレンスマニュアル検索!
16件ヒット [1-16件を表示] (0.012秒)
トップページ > クエリ:random[x] > クエリ:alphanumeric[x]

別のキーワード

  1. random rand
  2. random srand
  3. random state
  4. random left
  5. random seed

種類

ライブラリ

モジュール

検索結果

SecureRandom.alphanumeric(n = nil) -> String (21113.0)

ランダムな英数字を生成して返します。

...n A-Z, a-z, 0-9 からなる文字列が返されます。

@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。

//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(10) #=> "i6K93NdqiH"
//}...

NEWS for Ruby 2.5.0 (24.0)

NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...s://blog.rubygems.org/2017/10/09/2.6.14-released.html
* https://blog.rubygems.org/2017/08/27/2.6.13-released.html

* securerandom
* SecureRandom.alphanumeric を追加

* set
* Set#to_s を Set#inspect の別名として追加 13676
* Set#=== を Set#include? の別名として...
...nblock で
副作用として O_NONBLOCK フラグをセットするのをやめました(Linux のみ)
13362

* Random
* Random.raw_seed は Random.urandom に名前を変更しました。
シードを必要としない用途で有用です。9569

* Socket
* Socket::...
...える機能の変更」ではないが) Hashクラスのhashメソッドのアルゴリズムを SipHash13 にしました
13017

* SecureRandom が OpenSSL の提供する乱数ソースよりもOSの提供する乱数ソースを優先するようにしました 9569

* Mutex をより小...