<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karlley_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/karlley_jp/</author_url>
  <blog_title>時々とおまわり</blog_title>
  <blog_url>https://karlley.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>FBCのSinatraとDBを使ったメモアプリの開発に取り組んでいます。 DBに保存するレコードのRPIMARY KEYとしてSecureRandom.uuid で生成した文字列をCHAR型のカラムに保存しようと考えています。 最大文字列長をCHARに設定しようと思ったのですが、SecureRandom.uuid で生成した文字列が何文字か分からなかったので調べました。 結論 SecureRandom.uuid で生成した文字列の長さは36文字。 SecureRandom.uuid とは？ バージョン4のUUIDを生成するメソッド。 SecureRandom.uuid (Ruby 3.1 リフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarlley.hatenablog.jp%2Fentry%2F2022%2F07%2F28%2F141556&quot; title=&quot;RubyのSecureRandom.uuidで生成した文字列の長さについて - 時々とおまわり&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>2022-07-28 14:15:56</published>
  <title>RubyのSecureRandom.uuidで生成した文字列の長さについて</title>
  <type>rich</type>
  <url>https://karlley.hatenablog.jp/entry/2022/07/28/141556</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
