<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/rss/stylesheet/" type="text/xsl"?>
<rss xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:taxo='http://purl.org/rss/1.0/modules/taxonomy/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:podbridge='http://www.podbridge.com/podbridge-ad.dtd' version='2.0'>
<channel>
  <title>苏迟但到的主页</title>
  <language>zh-cn</language>
  <generator>microfeed.org</generator>
  <itunes:type>episodic</itunes:type>
  <itunes:explicit>false</itunes:explicit>
  <atom:link rel="self" href="https://kexohproject.pages.dev/rss/" type="application/rss+xml"/>
  <link>https://kexohproject.pages.dev</link>
  <description>
    <![CDATA[<p>你好，欢迎访问个人主页！</p><p>擅长密码学，安全分析，数字水印等技术。</p><p>你可以联系我通过:findmykexin@gmail.com或者知乎私信。</p><p>我的知乎链接：<a href="https://www.zhihu.com/people/su-chi-dan-dao" rel="noopener noreferrer" target="_blank">苏迟但到 - 知乎 (zhihu.com)</a></p><p>我的github链接：<a href="https://github.com/kexinoh" rel="noopener noreferrer" target="_blank">kexinoh</a></p>]]>
  </description>
  <itunes:author>苏迟但到</itunes:author>
  <itunes:image href="https://kexohcdn.gptapi.cyou/kexohproject/production/images/channel-2e54d141ee195646ca12a9d16507a908.jpg"/>
  <image>
    <title>苏迟但到的主页</title>
    <url>https://kexohcdn.gptapi.cyou/kexohproject/production/images/channel-2e54d141ee195646ca12a9d16507a908.jpg</url>
    <link>https://kexohproject.pages.dev</link>
  </image>
  <copyright>©2024</copyright>
  <itunes:category text="Education">
    <itunes:category text="Language Learning"/>
  </itunes:category>
  <itunes:category text="Technology"/>
  <item>
    <title>有Python大佬知道有什么随机性较大的函数吗？</title>
    <guid>8zkZK7_2IUu</guid>
    <pubDate>Wed, 18 Oct 2023 06:22:02 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<p data-pid="YLdp7YwZ">这里面大家产生了一个误会，是由于python版本更新导致的。</p><p data-pid="wBu3dbV_">其实python有三种伪随机数生成函数，但是被包装成了同一个函数。</p><p data-pid="ZOVUA_Hq">新的伪随机函数调用的是sha512。而sha512是在密码学意义上的伪随机函数，这个概念是比一般上的统计随机要强很多的概念。</p><p data-pid="6bVySNEr">但是旧的python伪随机函数，使用的是取自c的取模伪随机函数。</p><p data-pid="yclk9f4k">既经典的Ri=a*R_i-1+k mod N</p><p data-pid="ItgZh_fX">然后这种伪随机函数的随机性很大程度上依靠种子。如果种子被刻意构造的话，就可以实现在前100或者更大范围内生成的随机数有很强的偏差，且如果得知两个随机数即可预测之后的随机数，很不安全。</p><p data-pid="bxTNrN_U">你可以在random.seed里面设置version版本，如果设置为1的话，就是古老版本的伪随机生成函数。如果设置为2或者3的话，就是新版本的伪随机生成函数。</p><p></p>]]>
    </description>
    <itunes:title>New Article Title for iTunes</itunes:title>
  </item>
</channel>
</rss>