るりまサーチ

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

別のキーワード

  1. api packqw
  2. api packdw
  3. api openkey
  4. api check
  5. api unpackqw

種類

ライブラリ

検索結果

OpenSSL::Random (18066.0)

OpenSSL が利用する擬似乱数生成器関連のモジュールです。

...下のものがあります。
* OpenSSL::PKey::RSA.generate
* OpenSSL::PKey::DSA.generate
* OpenSSL::PKey::DH.generate
* OpenSSL::Cipher#random_key
そのような乱数は適切な実装を持つ擬似乱数生成器に適切なシードを渡す
ことによって実現できます。

Op...
...penSSL::Cipher#random_iv
などでも利用されます。

擬似乱数生成器は適切なシードを与えられなければ正しく動作しません。
OpenSSL にはそのための API
* OpenSSL::Random.#random_add
* OpenSSL::Random.#seed
* OpenSSL::Random.#load_random_file
が存在...
...します。これらの API を模式的に説明すると、以下のようになります。
* シードの各ビットは統計的な乱雑さ、予測不可能性を持ち、ビット列の
乱雑さはエントロピーという量(単位は bit, 8bit = 1byte)
で量ることがで...

NEWS for Ruby 3.0.0 (78.0)

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

...cated` (or with `-w` to show other warnings too).
16345
* `$SAFE` and `$KCODE` are now normal global variables with no special behavior.
C-API methods related to `$SAFE` have been removed.
16131 17136
* yield in singleton class definitions in methods is now a SyntaxError
instead...
...* Random
* `Random::DEFAULT` now refers to the `Random` class instead of being a `Random` instance, so it can work with `Ractor`. 17322
* `Random::DEFAULT` is deprecated since its value is now confusing and it is no longer global, use `Kernel.rand`/`Random.rand` directly, or create a `Random...
...` instance with `Random.new` instead. 17351
* String
* The following methods now return or yield String instances instead of subclass instances when called on subclass instances: 10845
* String#*
* String#capitalize
* String#center
* String#chomp
* String#chop...

NEWS for Ruby 3.1.0 (30.0)

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

...6.4.0
* readline 0.0.3
* readline-ext 0.1.4
* reline 0.3.0
* resolv 0.2.1
* rinda 0.1.1
* ruby2_keywords 0.0.5
* securerandom 0.1.1
* set 1.0.2
* stringio 3.0.1
* strscan 3.0.1
* tempfile 0.1.2
* time 0.2.0
* timeout 0.2.0
* tmpdir 0.1.2
*...
....resumeで再開することができます。詳細は 18176 を参照してください。
* Random::Formatterは random/formatter.rb に移動され、SecureRandomを使わずに Random#hex や Random#base64 などが使用できるようになりました。 18190

== 互換性 (機能追加...
....safe_load に変更されました。この動作に移行するにはPsych 3.3.2を使用する必要があるかもしれません。 17866

== C API の更新

* ドキュメント化されました。 https://github.com/ruby/ruby/pull/4815
* rb_gc_force_recycleは非推奨で、no-op関数...

NEWS for Ruby 2.0.0 (24.0)

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

...ッドに対応します

* Array
* 追加: Array#bsearch 二分探索します
* 非互換:
* Array#shuffle! と Array#sample の random パラメータには最大値のみを指定することが可能になりました
* Array#values_at に Range オブジェクトを与え...
...タベースのフォーマットを変更したことです。
(riのデータを再生成する必要があります)
その他のAPIの変更は内部的なものなので、ほとんどのユーザーに影響はないでしょう。
* 注目すべき変更
* riがペ...
...io
* 非推奨: StringIO#lines, StringIO#bytes, StringIO#chars, StringIO#codepoints

* syslog
* 追加: Syslog::Logger Syslog上に Logger API を提供します
* 追加: Syslog::Priority, Syslog::Level, Syslog::Option, Syslog::Macros
システムで定義されている定数...

NEWS for Ruby 2.5.0 (24.0)

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

...* https://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::...
...* Rubygems
* "ubygems.rb" というファイルを標準添付ライブラリから削除しました。Ruby 1.9 から不要でした。

=== C APIの更新

=== Supported platform の変更

* NaClサポートを削除しました
* https://bugs.chromium.org/p/chromium/issues/detail?id=2...

絞り込み条件を変える