<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>winebarrel</author_name>
  <author_url>https://blog.hatena.ne.jp/winebarrel/</author_url>
  <blog_title>so what</blog_title>
  <blog_url>https://so-wh.at/</blog_url>
  <categories>
    <anon>RUBY</anon>
  </categories>
  <description>さらっと読むかぎり、/dev/urandomと時刻とpidと変数seedのアドレスをシードにいている模様。 S_ISCHRで何を判別しているんだろう？ static VALUE random_seed() { static int n = 0; struct timeval tv; int fd; struct stat statbuf; int seed_len; BDIGIT *digits; unsigned long *seed; NEWOBJ(big, struct RBignum); OBJSETUP(big, rb_cBignum, T_BIGNUM); seed_len = 4…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20111205%2Fp1&quot; title=&quot; srandのデフォルトのシード - so what&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-05 00:00:00</published>
  <title> srandのデフォルトのシード</title>
  <type>rich</type>
  <url>https://so-wh.at/entry/20111205/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
